Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js concate map

var map1 = new Map([['breakfast', 'meal'], ['dinner', 'meal']]);
var map2 = new Map([['launch', 'meal'], ['dinner', 'meal']]);
var concatenated = new Map([...map1].concat([...map2]));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #concate #map
ADD COMMENT
Topic
Name
6+2 =