aboutsummaryrefslogtreecommitdiff
path: root/node_modules/isarray/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/isarray/index.js')
-rw-r--r--node_modules/isarray/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/node_modules/isarray/index.js b/node_modules/isarray/index.js
index 5f5ad45d4..a57f63495 100644
--- a/node_modules/isarray/index.js
+++ b/node_modules/isarray/index.js
@@ -1,3 +1,5 @@
+var toString = {}.toString;
+
module.exports = Array.isArray || function (arr) {
- return Object.prototype.toString.call(arr) == '[object Array]';
+ return toString.call(arr) == '[object Array]';
};