{"ScriptPreparationCode":"function createSlices(numSlices, propsPerSlice = 5) {\r\n const arr = [];\r\n const entries = [];\r\n\r\n for (let i = 0; i \u003C numSlices; i\u002B\u002B) {\r\n const o = {};\r\n for (let j = 0; j \u003C propsPerSlice; j\u002B\u002B) {\r\n const key = \u0060key_${i}_${j}\u0060;\r\n const value = \u0060${i}_${j}\u0060;\r\n o[key] = value;\r\n entries.push([key, value]);\r\n }\r\n arr.push(o);\r\n }\r\n\r\n return [arr, entries];\r\n}\r\n\r\nvar [slices, entries] = createSlices(100);","TestCases":[{"Name":"Reduce / Spread","Code":"slices.reduce((store, slice) =\u003E ({ ...store, ...slice }), {});","IsDeferred":false},{"Name":"Map Object.entries / Object.fromEntries","Code":"Object.fromEntries(\r\n slices\r\n .map((slice) =\u003E Object.entries(slice))\r\n .flat()\r\n);","IsDeferred":false},{"Name":"Object.assign - single spread, no mutation","Code":"Object.assign({}, ...slices);","IsDeferred":false},{"Name":"Object.assign - single spread, mutate first","Code":"Object.assign(...slices);","IsDeferred":false},{"Name":"Simple fromEntries","Code":"Object.fromEntries(entries);","IsDeferred":false}]}