Copies all entries of a Map into a new Map
Copy a Map
const map = new Map([["A", "B"]]);const copiedMap = copy(map);console.log(copiedMap); // Map([["A", "B"]])console.log(map === copiedMap); // false
the new Map containing all entries of the source Map
the Map key type
the Map value type
the Map to copy
Generated using TypeDoc
Copies all entries of a Map into a new Map
Example
Copy a Map
Returns
the new Map containing all entries of the source Map