summaryrefslogtreecommitdiff
path: root/node_modules/moment/src/lib/utils/is-array.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/moment/src/lib/utils/is-array.js')
-rw-r--r--node_modules/moment/src/lib/utils/is-array.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/node_modules/moment/src/lib/utils/is-array.js b/node_modules/moment/src/lib/utils/is-array.js
new file mode 100644
index 0000000..d57c875
--- /dev/null
+++ b/node_modules/moment/src/lib/utils/is-array.js
@@ -0,0 +1,6 @@
+export default function isArray(input) {
+ return (
+ input instanceof Array ||
+ Object.prototype.toString.call(input) === '[object Array]'
+ );
+}