_.isWeakSet(value)

sourcenpm package

Checks if value is classified as a WeakSet object.

Since

4.3.0

Arguments

  • value (*): The value to check.

Returns

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

Example

  1. _.isWeakSet(new WeakSet);
    // => true
    _.isWeakSet(new Set);
    // => false