isObjectLike

Lang
since 4.0.0

Arguments

  • * The value to check.

Returns

boolean `true` if `value` is object-like, else `false`.

Checks if value is object-like. A value is object-like if it's not null and has a typeof result of "object".

Example of Lodash _.isObjectLike

_.isObjectLike({});
// => true

_.isObjectLike([1, 2, 3]);
// => true

_.isObjectLike(_.noop);
// => false

_.isObjectLike(null);
// => false