{"ScriptPreparationCode":null,"TestCases":[{"Name":"With object spread","Code":"const toReduce = [{key: \u0027a\u0027, value: 1}, {key: \u0027b\u0027, value: 2}, {key: \u0027c\u0027, value: 3}];\r\nconst reduced = toReduce.reduce((acc, cur) =\u003E {\r\n return {\r\n ...acc,\r\n [cur.key]: cur.value,\r\n };\r\n}, {});","IsDeferred":false},{"Name":"With parameter mutation","Code":"const toReduce = [{key: \u0027a\u0027, value: 1}, {key: \u0027b\u0027, value: 2}, {key: \u0027c\u0027, value: 3}];\r\nconst reduced = toReduce.reduce((acc, cur) =\u003E {\r\n acc[cur.key] = cur.value;\r\n return acc;\r\n}, {});","IsDeferred":false}]}