_.isArrayLikeObject

_.isArrayLikeObject(value)

This method is like _.isArrayLike except that it also checks if value is an object.

Since

4.0.0

Arguments

  1. value (*): The value to check.

Returns

(boolean): Returns true if value is an array-like object, else false.

Example

_.isArrayLikeObject([1, 2, 3]);
// => true
 
_.isArrayLikeObject(document.body.children);
// => true
 
_.isArrayLikeObject('abc');
// => false
 
_.isArrayLikeObject(_.noop);
// => false
doc_Lodash
2016-11-27 16:37:54
Comments
Leave a Comment

Please login to continue.