{"ScriptPreparationCode":null,"TestCases":[{"Name":"spread","Code":"const arrayA = [{\r\n id: 1,\r\n value: \u0027abc\u0027,\r\n},\r\n{\r\n id: 2,\r\n value: \u0027abc\u0027,\r\n},\r\n{\r\n id: 3,\r\n value: \u0027abc\u0027,\r\n},\r\n{\r\n id: 4,\r\n value: \u0027abc\u0027,\r\n}];\r\nconst reduced = arrayA.reduce((obj, curr) =\u003E ({\r\n ...obj,\r\n [curr.id]: curr.value\r\n}), {});","IsDeferred":false},{"Name":"key insert","Code":"const arrayA = [{\r\n id: 1,\r\n value: \u0027abc\u0027,\r\n},\r\n{\r\n id: 2,\r\n value: \u0027abc\u0027,\r\n},\r\n{\r\n id: 3,\r\n value: \u0027abc\u0027,\r\n},\r\n{\r\n id: 4,\r\n value: \u0027abc\u0027,\r\n}];\r\nconst reduced = arrayA.reduce((obj, curr) =\u003E {\r\n obj[curr.id] = curr.value;\r\n return obj;\r\n}, {});","IsDeferred":false}]}