{"ScriptPreparationCode":"function generateTestArray() {\r\n const result = [];\r\n for (let i = 0; i \u003C 1000000; \u002B\u002Bi) {\r\n result.push({\r\n a: i,\r\n b: i / 2,\r\n r: 0,\r\n });\r\n }\r\n return result;\r\n}","TestCases":[{"Name":".forEach destructured","Code":"const array = generateTestArray();\r\nconst newMap = new Map();\r\narray.forEach(({a, b}) =\u003E {\r\n newMap.set(a, b);\r\n});\r\nconst foo = [...newMap.entries()];","IsDeferred":false},{"Name":"for..of destructured","Code":"const array = generateTestArray();\r\nconst newMap = new Map();\r\nfor(const {a, b} of array) {\r\n newMap.set(a, b);\r\n}\r\nconst foo = [...newMap.entries()];","IsDeferred":false},{"Name":".forEach","Code":"const array = generateTestArray();\r\nconst newMap = new Map();\r\narray.forEach((x) =\u003E {\r\n const {a, b} = x;\r\n newMap.set(a, b);\r\n});\r\nconst foo = [...newMap.entries()];","IsDeferred":false},{"Name":"for..of","Code":"const array = generateTestArray();\r\nconst newMap = new Map();\r\nfor(const x of array) {\r\n const {a, b} = x;\r\n newMap.set(a, b);\r\n}\r\nconst foo = [...newMap.entries()];","IsDeferred":false}]}