]> zoso.dev Git - buffer.git/commitdiff
fix isArray
authorFeross Aboukhadijeh <feross@feross.org>
Wed, 11 Dec 2013 02:39:20 +0000 (18:39 -0800)
committerFeross Aboukhadijeh <feross@feross.org>
Wed, 11 Dec 2013 02:39:20 +0000 (18:39 -0800)
index.js

index f8f2945903bf9a8a2a947050997b2f3f2da08cb2..987a554a98a98bb2eda4994362c9aff25ce5a754 100644 (file)
--- a/index.js
+++ b/index.js
@@ -1038,7 +1038,7 @@ function coerce (length) {
 
 function isArray (subject) {
   return (Array.isArray || function (subject) {
-    Object.toString.apply(subject) === '[object Array]'
+    Object.prototype.toString.call(subject) === '[object Array]'
   })(subject)
 }