Function isSet

  • It will determine whether the provided value is a Set object or not.

    Parameters

    • value: unknown

    Returns value is Set<unknown>

    Since

    1.0.0

    Example

    isSet(new Set);
    // => true

    Example

    isSet(new WeakSet);
    // => false