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
Optional
The value to check.
Returns true if value is object-like, else false.
true
false
_.isObjectLike({});// => true_.isObjectLike([1, 2, 3]);// => true_.isObjectLike(_.noop);// => false_.isObjectLike(null);// => false Copy
_.isObjectLike({});// => true_.isObjectLike([1, 2, 3]);// => true_.isObjectLike(_.noop);// => false_.isObjectLike(null);// => false
Checks if
value
is object-like. A value is object-like if it's notnull
and has atypeof
result of "object".