Date

“Lang” Methods

_.isObjectLike(value)

source npm package

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

引入版本

4.0.0

参数
value (*) : The value to check.

返回值
(boolean) : Returns true if value is object-like, else false.

示例
_.isObjectLike({});
// => true
 
_.isObjectLike([1, 2, 3]);
// => true
 
_.isObjectLike(_.noop);
// => false
 
_.isObjectLike(null);
// => false