{"ScriptPreparationCode":"var arr = [];\r\n\r\nfor (let i = 1; i \u003C= 100; i\u002B\u002B) {\r\n arr.push({ id: i, name: \u0060${i}\u0060 });\r\n}\r\n\r\nvar arr2 = [];\r\n\r\nfor (let i = 101; i \u003C= 200; i\u002B\u002B) {\r\n arr.push({ id: i, name: \u0060${i}\u0060 });\r\n}\r\n\r\nvar map = new Map(arr.map(item =\u003E [item.id, item]));","TestCases":[{"Name":"new Map","Code":"const map2 = new Map(arr2.map(item =\u003E [item.id, item]));\r\nmap = new Map([...map, ...arr2.map(item =\u003E [item.id, item])]);","IsDeferred":false},{"Name":"push array to map","Code":"arr2.forEach(item =\u003E {\r\n\tmap.set([item.id, item])\r\n});","IsDeferred":false}]}