Checks if value is object-like. A value is object-like if it's not null and has a typeof result of "object".
value
null
typeof
The value to check.
Returns true if value is object-like, else false.
true
false
5.3.0
isObjectLike({})// => trueisObjectLike([1, 2, 3])// => trueisObjectLike(Function)// => falseisObjectLike(null)// => false Copy
isObjectLike({})// => trueisObjectLike([1, 2, 3])// => trueisObjectLike(Function)// => falseisObjectLike(null)// => false
Checks if
value
is object-like. A value is object-like if it's notnull
and has atypeof
result of "object".