_.isMap

_.isMap(value)

Checks if value is classified as a Map object.

Since

4.3.0

Arguments

  1. value (*): The value to check.

Returns

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

Example

_.isMap(new Map);
// => true
 
_.isMap(new WeakMap);
// => false
doc_Lodash
2016-11-27 16:38:12
Comments
Leave a Comment

Please login to continue.