{"ScriptPreparationCode":"var data = { ...Array.from(Array(10000).keys()) };","TestCases":[{"Name":"Object.fromEntries","Code":"Object.fromEntries(Object.entries(data).map((key, value) =\u003E [key, value]));","IsDeferred":false},{"Name":"Reduce (reuse object)","Code":"Object.entries(data).reduce((acc, [k, v]) =\u003E {\r\n acc[k] = v.toString();\r\n return acc;\r\n}, {});","IsDeferred":false},{"Name":"for...of","Code":"const result = {};\r\nfor (const [key, value] of Object.entries(data)) {\r\n result[key] = value;\r\n}\r\nreturn result;","IsDeferred":false},{"Name":"Map","Code":"Object.entries(data).reduce((acc, [k, v]) =\u003E {\r\n acc.set(k, v.toString())\r\n return acc;\r\n}, new Map());","IsDeferred":false},{"Name":"forEach","Code":"const result = {};\r\nObject.entries(data).forEach(entry =\u003E {\r\n const [key, value] = entry;\r\n result[key] = value;\r\n});\r\nreturn result;","IsDeferred":false}]}