{"ScriptPreparationCode":"var state = {}\r\nvar cols = [{id: 1, key: \u0027value\u0027}, {id: 2, key: \u0027value\u0027}]\r\nfor (var i = 0; i \u003C 2000; i\u002B\u002B) {\r\n state[i] = {\r\n id: i,\r\n key: \u0027value\u0027\r\n };\r\n};\r\n","TestCases":[{"Name":"Spread","Code":"const colDefs = cols.map(c =\u003E {return {[c.id]: c}});\r\nconst test = Object.assign({}, state, ...colDefs);","IsDeferred":false},{"Name":"Mutate","Code":"const colDefs = {}\r\ncols.forEach(c =\u003E {\r\n colDefs[c.id] = c;\r\n});\r\nconst test = Object.assign({}, state, colDefs);","IsDeferred":false}]}