]> zoso.dev Git - buffer.git/commitdiff
fix isArray function (tests pass in Firefox 3 now)
authorFeross Aboukhadijeh <feross@feross.org>
Wed, 11 Dec 2013 05:53:17 +0000 (21:53 -0800)
committerFeross Aboukhadijeh <feross@feross.org>
Wed, 11 Dec 2013 05:53:17 +0000 (21:53 -0800)
index.js

index 7edee493320c827af75324015a4e47cb287f8c17..9bb3b8c049de8769fc7462eac520a4116331b312 100644 (file)
--- a/index.js
+++ b/index.js
@@ -1052,7 +1052,7 @@ function coerce (length) {
 
 function isArray (subject) {
   return (Array.isArray || function (subject) {
-    Object.prototype.toString.call(subject) === '[object Array]'
+    return Object.prototype.toString.call(subject) === '[object Array]'
   })(subject)
 }