{"ScriptPreparationCode":"function generateID(length = 10) {\r\n const characters = \u0027ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\u0027;\r\n let result = \u0027\u0027;\r\n const charactersLength = characters.length;\r\n \r\n for (let i = 0; i \u003C length; i\u002B\u002B) {\r\n // Generate a random index based on characters length\r\n const randomIndex = Math.floor(Math.random() * charactersLength);\r\n // Append the character at the random index to the result string\r\n result \u002B= characters[randomIndex];\r\n }\r\n\r\n return result;\r\n}\r\n\r\nconst data = new Array(100).fill(\u0027a\u0027).map(() =\u003E ({ key: generateID(), value: \u0027value\u0027 }));\r\n","TestCases":[{"Name":"spread acc","Code":"const result = data.reduce((acc, item) =\u003E {\r\n\treturn {\r\n\t\t...acc,\r\n\t\t[item.key]: item.value,\r\n\t};\r\n}, {});","IsDeferred":false},{"Name":"mutate acc","Code":"const result = data.reduce((acc, item) =\u003E {\r\n\tacc[item.key] = item.value;\r\n\treturn acc;\r\n}, {});","IsDeferred":false}]}