{"ScriptPreparationCode":null,"TestCases":[{"Name":"with spread operator","Code":"const range = (from, to) =\u003E {\r\n const output = []\r\n for(var x = from; x \u003C to; x\u002B\u002B){\r\n output.push({x, y: x, z: x})\r\n }\r\n return output\r\n}\r\nrange(0, 10).reduce((acc, obj) =\u003E {\r\n return {\r\n ...acc,\r\n ...obj\r\n }\r\n}, {})","IsDeferred":false},{"Name":"with mutation","Code":"const range = (from, to) =\u003E {\r\n const output = []\r\n for(var x = from; x \u003C to; x\u002B\u002B){\r\n output.push({x, y: x, z: x})\r\n }\r\n return output\r\n}\r\nrange(0, 10).reduce((acc, obj) =\u003E {\r\n for (const key of Object.keys(obj)) {\r\n acc[key] = obj[key]\r\n }\r\n return acc\r\n}, {})","IsDeferred":false},{"Name":"with object assign","Code":"const range = (from, to) =\u003E {\r\n const output = []\r\n for(var x = from; x \u003C to; x\u002B\u002B){\r\n output.push({x, y: x, z: x})\r\n }\r\n return output\r\n}\r\nrange(0, 10).reduce((acc, obj) =\u003E {\r\n return Object.assign(acc, obj)\r\n}, {})","IsDeferred":false}]}