Date

“Lang” Methods

_.isMap(value)

source npm package

Checks if value is classified as a Map object.

引入版本

4.3.0

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

返回值
(boolean) : Returns true if value is a map, else false.

示例
_.isMap(new Map);
// => true
 
_.isMap(new WeakMap);
// => false