_.isWeakMap

_.isWeakMap(value)

Checks if value is classified as a WeakMap object.

Since

4.3.0

Arguments

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

Returns

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

Example

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

Please login to continue.