{"ScriptPreparationCode":"var map = new Map();\r\nvar set = new Set();\r\nvar obj = {};\r\nvar arr = [];\r\nvar weakMap = new WeakMap();\r\nvar weakSet = new WeakSet();\r\n\r\nconst a = Array.from({\r\n length: 1000\r\n});\r\n\r\nvar vals = a.map(v =\u003E Math.random() * 1000);\r\n\r\nvar valsString = a.map(v =\u003E String(Math.random() * 1000));\r\n\r\nvar valsObj = a.map(v =\u003E {\r\n return {\r\n v: Math.random() * 1000\r\n }\r\n});","TestCases":[{"Name":"map","Code":"vals.forEach(va =\u003E map.set(va, va))","IsDeferred":false},{"Name":"set","Code":"vals.forEach(va =\u003E set.add(va))","IsDeferred":false},{"Name":"obj","Code":"valsString.forEach(va =\u003E obj[va] = va)","IsDeferred":false},{"Name":"arr","Code":"valsString.forEach(va =\u003E arr.push(va))","IsDeferred":false},{"Name":"WeakMap","Code":"valsObj.forEach(va =\u003E weakMap.set(va, va))","IsDeferred":false},{"Name":"WeakSet","Code":"valsObj.forEach(va =\u003E weakSet.add(va))","IsDeferred":false}]}