• Clones the Map object with a shallow copy method. If you want to clone Map deeply, you can use structuredClone function.

    Type Parameters

    • K

    • V

    Parameters

    • m: Map<K, V>

      To be cloned.

    Returns Map<K, V>

    A new cloned one.

Generated using TypeDoc