1 var isFunction = require('./isFunction'),
2 isLength = require('./isLength');
5 * Checks if `value` is array-like. A value is considered array-like if it's
6 * not a function and has a `value.length` that's an integer greater than or
7 * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
13 * @param {*} value The value to check.
14 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
17 * _.isArrayLike([1, 2, 3]);
20 * _.isArrayLike(document.body.children);
23 * _.isArrayLike('abc');
26 * _.isArrayLike(_.noop);
29 function isArrayLike(value) {
30 return value != null && isLength(value.length) && !isFunction(value);
33 module.exports = isArrayLike;