function double(item, n) { return n*2; } var data = [...Array(20)].map((v, idx) => idx);
{"ScriptPreparationCode":"function double(item, n) { \r\n\treturn n*2;\r\n}\r\nvar data = [...Array(20)].map((v, idx) =\u003E idx);\r\n","TestCases":[{"Name":"lodash zipObject","Code":"_.zipObject(data, _.map(double, data))","IsDeferred":false},{"Name":"lodash reduce","Code":"_.reduce(data, (acc, cur) =\u003E { acc[cur] = double(cur); return acc; }, {});","IsDeferred":false},{"Name":"es6 reduce","Code":"data.reduce((acc, cur) =\u003E { acc[cur] = double(cur); return acc; }, {});","IsDeferred":false}]}