_.isWeakMap(value)

sourcenpm package

Checks if value is classified as a WeakMap object.

Since

4.3.0

Arguments

  • value (*): The value to check.

Returns

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

Example

  1. _.isWeakMap(new WeakMap);
    // => true
    _.isWeakMap(new Map);
    // => false