Function isMap

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

    Parameters

    • value: unknown

    Returns value is Map<unknown, unknown>

    Since

    1.0.0

    Example

    isMap(new Map);
    // => true

    Example

    isMap(new WeakMap);
    // => false