_.isSet(value)

sourcenpm package

Checks if value is classified as a Set object.

Since

4.3.0

Arguments

  • value (*): The value to check.

Returns

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

Example

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