mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
372 B
16 lines
372 B
10 years ago
|
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;
|