{"ScriptPreparationCode":null,"TestCases":[{"Name":"fromEntries","Code":"const myValues = [];\r\nfor (let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n myValues.push({\r\n key: \u0060key${i}\u0060,\r\n value: \u0060value${i}\u0060\r\n })\r\n}\r\n\r\nconst myObject = Object.fromEntries(myValues.map(({ key, value }) =\u003E [key, value]));","IsDeferred":false},{"Name":"reduce","Code":"const myValues = [];\r\nfor (let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n myValues.push({\r\n key: \u0060key${i}\u0060,\r\n value: \u0060value${i}\u0060\r\n })\r\n}\r\n\r\nconst myObject = myValues.reduce((acc, {key, value}) =\u003E {\r\n acc[key] = value;\r\n return acc;\r\n});","IsDeferred":false}]}