_.isArrayLike(value)
Checks if value
is array-like. A value is considered array-like if it's not a function and has a value.length
that's an integer greater than or equal to 0
and less than or equal to Number.MAX_SAFE_INTEGER
.
Since
4.0.0
Arguments
value
(*): The value to check.
Returns
(boolean): Returns true
if value
is array-like, else false
.
Example
_.isArrayLike([1, 2, 3]);// => true_.isArrayLike(document.body.children);// => true_.isArrayLike('abc');// => true_.isArrayLike(_.noop);// => false
当前内容版权归 lodash.com 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 lodash.com .