{"ScriptPreparationCode":" var arr = [\r\n [\u0027a\u0027, 1],\r\n [\u0027b\u0027, 2],\r\n [\u0027c\u0027, 3],\r\n [\u0027d\u0027, 4],\r\n [\u0027e\u0027, 5],\r\n [\u0027f\u0027, 6],\r\n [\u0027g\u0027, 7],\r\n [\u0027h\u0027, 8],\r\n [\u0027i\u0027, 9],\r\n [\u0027j\u0027, 0],\r\n ]","TestCases":[{"Name":"object assign \u002B new object","Code":"var result = arr.reduce((prev, curr) =\u003E Object.assign(\r\n {},\r\n prev,\r\n {\r\n [curr[0]]: curr[1]\r\n },\r\n))","IsDeferred":false},{"Name":"object assign","Code":"var result = arr.reduce((prev, curr) =\u003E Object.assign(\r\n prev,\r\n {\r\n [curr[0]]: curr[1]\r\n },\r\n))","IsDeferred":false},{"Name":"arr reduce \u002B simple set","Code":"var result = arr.reduce((prev, curr) =\u003E {\r\n prev[curr[1]] = curr[2];\r\n return prev;\r\n})","IsDeferred":false},{"Name":"arr reduce \u002B spread","Code":"var result = arr.reduce((prev, curr) =\u003E ({\r\n ...prev,\r\n [curr[0]]: curr[1],\r\n}))","IsDeferred":false},{"Name":"fromPairs","Code":"var result = _.fromPairs(arr);","IsDeferred":false}]}