{"ScriptPreparationCode":"const array = Array.from({length: 10_000}, () =\u003E Math.floor(Math.random() * 10_000_000));\r\nconst map = new Map();\r\narray.forEach((x, i) =\u003E map.set(x, i));","TestCases":[{"Name":"From map","Code":"return new Map(map);","IsDeferred":false},{"Name":"From array","Code":"return new Map([...map])","IsDeferred":false},{"Name":"Step-by-step","Code":"const newMap = new Map();\r\nmap.keys().forEach(x =\u003E newMap.set(x, map.get(x)));\r\nreturn newMap","IsDeferred":false}]}