From: Feross Aboukhadijeh Date: Wed, 11 Dec 2013 02:39:20 +0000 (-0800) Subject: fix isArray X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=7057f189128e788477163e8363cc245732d600c0;p=buffer.git fix isArray --- diff --git a/index.js b/index.js index f8f2945..987a554 100644 --- 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) }