Function isWeakSet

  • Checks if value is classified as a WeakSet object.

    Parameters

    • value: any

      The value to check.

    Returns value is WeakSet<any>

    Returns true if value is a weak set, else false.

    5.6.0

    isWeakSet(new WeakSet)
    // => true

    isWeakSet(new Set)
    // => false