This method is like isArrayLike except that it also checks if value is an object.
isArrayLike
value
The value to check.
Returns true if value is an array-like object, else false.
true
false
5.5.0
isArrayLikeObject([1, 2, 3])// => trueisArrayLikeObject(document.body.children)// => trueisArrayLikeObject('abc')// => falseisArrayLikeObject(Function)// => false Copy
isArrayLikeObject([1, 2, 3])// => trueisArrayLikeObject(document.body.children)// => trueisArrayLikeObject('abc')// => falseisArrayLikeObject(Function)// => false
This method is like
isArrayLike
except that it also checks ifvalue
is an object.