{"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":"return immer.produce({}, draft =\u003E {\r\n\tdata.reduce((acc, curr) =\u003E {\r\n \tacc[curr.name] = curr.visited;\r\n \treturn acc;\r\n\t}, draft);\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}]}