Version 1
[yaffs-website] / node_modules / grunt-legacy-log / node_modules / lodash / internal / isArrayLike.js
diff --git a/node_modules/grunt-legacy-log/node_modules/lodash/internal/isArrayLike.js b/node_modules/grunt-legacy-log/node_modules/lodash/internal/isArrayLike.js
new file mode 100644 (file)
index 0000000..72443cd
--- /dev/null
@@ -0,0 +1,15 @@
+var getLength = require('./getLength'),
+    isLength = require('./isLength');
+
+/**
+ * Checks if `value` is array-like.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
+ */
+function isArrayLike(value) {
+  return value != null && isLength(getLength(value));
+}
+
+module.exports = isArrayLike;