{"ScriptPreparationCode":"function getItems(count) {\r\n let id = 1;\r\n return _.times(count, () =\u003E ({\r\n name: \u0022city\u0022 \u002B id\u002B\u002B,\r\n visited: true\r\n }))\r\n}\r\ndata = getItems(100)","TestCases":[{"Name":"immer","Code":"data.reduce((acc, curr) =\u003E {\r\n return immer.produce({}, draft =\u003E {\r\n draft[curr.name] = curr.visited;\r\n });\r\n}, {});","IsDeferred":false},{"Name":"Spread","Code":"data.reduce((acc, curr) =\u003E ({\r\n ...acc,\r\n [curr.name]: curr.visited,\r\n}), {});","IsDeferred":false}]}