Checks if value is object-like. A value is object-like if it's not null/undefined and has a typeof result of object.
value
null
undefined
typeof
object
1.0.0
isObjectLike({}); // => true Copy
isObjectLike({}); // => true
isObjectLike([1, 2, 3]); // => true Copy
isObjectLike([1, 2, 3]); // => true
isObjectLike(() => 0); // => false Copy
isObjectLike(() => 0); // => false
isObjectLike(null); // => false Copy
isObjectLike(null); // => false
Checks if
valueis object-like. A value is object-like if it's notnull/undefinedand has atypeofresult ofobject.