{"ScriptPreparationCode":"var array = Array.from(Array(10000).keys()).map((i) =\u003E ({\r\n id: i,\r\n count: i * 100,\r\n}))","TestCases":[{"Name":"Object.fromEntries(array.map)","Code":"Object.fromEntries(array.map(({ id, count }) =\u003E [id, count]));","IsDeferred":false},{"Name":"Array.reduce (reuse same object)","Code":"array.reduce((obj, { id, count }) =\u003E {\r\n obj[id] = count;\r\n return obj;\r\n}, {});","IsDeferred":false},{"Name":"Array.reduce (use Object.assign)","Code":"array.reduce((obj, { id, count }) =\u003E Object.assign(obj, { [id]: count }), {});","IsDeferred":false},{"Name":"Array.reduce (use destructuring)","Code":"array.reduce((obj, { id, count }) =\u003E ({ ...obj, [id]: count }), {});","IsDeferred":false}]}