Function isWeakMap

  • Checks if value is classified as a WeakMap object.

    Parameters

    • value: any

      The value to check.

    Returns value is WeakMap<any, any>

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

    5.6.0

    isWeakMap(new WeakMap)
    // => true

    isWeakMap(new Map)
    // => false