{"ScriptPreparationCode":null,"TestCases":[{"Name":"Spread","Code":"const data = [\r\n [\u0022test1\u0022, 1],\r\n [\u0022test2\u0022, 2],\r\n [\u0022test3\u0022, 3],\r\n [\u0022test4\u0022, 4],\r\n [\u0022test5\u0022, 5],\r\n [\u0022test6\u0022, 6],\r\n [\u0022test7\u0022, 7],\r\n [\u0022test8\u0022, 8],\r\n [\u0022test9\u0022, 9],\r\n]\r\n\r\nconst res = data.reduce((acc, item) =\u003E ({...acc, [item[0]]: item[1]}), {})","IsDeferred":false},{"Name":"Object assign","Code":"const data = [\r\n [\u0022test1\u0022, 1],\r\n [\u0022test2\u0022, 2],\r\n [\u0022test3\u0022, 3],\r\n [\u0022test4\u0022, 4],\r\n [\u0022test5\u0022, 5],\r\n [\u0022test6\u0022, 6],\r\n [\u0022test7\u0022, 7],\r\n [\u0022test8\u0022, 8],\r\n [\u0022test9\u0022, 9],\r\n]\r\n\r\nconst res = data.reduce((acc, item) =\u003E {Object.assign(acc, {[item[0]]: item[1]}); return acc;}, {})","IsDeferred":false}]}