{"ScriptPreparationCode":"array = Array.from(Array(10000).keys())","TestCases":[{"Name":"Object spread","Code":"const resp = array.reduce(\r\n (acc, curr) =\u003E ({ ...acc, [curr]: curr }),\r\n {},\r\n);","IsDeferred":false},{"Name":"Object assign","Code":"const resp = array.reduce(\r\n (acc, curr) =\u003E Object.assign(acc, { [curr]: curr }),\r\n {}\r\n);","IsDeferred":false},{"Name":"Object fromEntries","Code":"const resp = Object.fromEntries(array.map(curr =\u003E [curr, curr]));","IsDeferred":false},{"Name":"forEach","Code":"const resp = {};\r\narray.forEach(curr =\u003E resp[curr] = curr);","IsDeferred":false},{"Name":"for loop","Code":"const resp = {};\r\nfor (const curr of array) {\r\n resp[curr] = curr;\r\n}","IsDeferred":false}]}