Given a map, create a new map with the same key/value pairs.
// input:
const m = new Map([['apples', 1], ['bananas', 2], ['carrots', 3]])
// output:
newMap // Map { 'apples' => 1, 'bananas' => 2, 'carrots' => 3 }
(Ctrl + ')
Loading...
/* output */
Next(Ctrl + y)