Tests if a value is object-like.
typeof
null
value to test
boolean indicating whether a value is object-like
var bool = isObjectLike( {} ); // returns true
var bool = isObjectLike( [] ); // returns true
var bool = isObjectLike( null ); // returns false
Tests if a value is object-like.
Notes
typeof
operator except thatnull
is not considered an object.