Maps the values of a Map from type S to T
S
T
Map all values from number to string
const mapper = mapValues((n) => String(n));const map = mapValues(new Map([1, 1]));console.log(map); // Map([[1, "1"]])
the new Map with the mapped values
Generated using TypeDoc
Maps the values of a Map from type
StoTExample
Map all values from number to string
Returns
the new Map with the mapped values