Function isWeakMap

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

    Parameters

    • value: unknown

    Returns value is WeakMap<RecordT, unknown>

    Since

    1.0.0

    Example

    isWeakMap(new WeakMap);
    // => true

    Example

    isWeakMap(new Map);
    // => false