Given a map a key and a value, add the key with the value to the map.
// input:
const m = new Map([['apples', 1], ['bananas', 2], ['carrots', 3]]), k = 'dates', v = 4
// output:
{ apples: 1, bananas: 2, carrots: 3, dates: 4 }
(Ctrl + ')
Loading...
/* output */
Next(Ctrl + y)