{"ScriptPreparationCode":" var data = [..._.range(1000).map(function(i) {\r\n return {\r\n counter: i\r\n }\r\n }),..._.range(1000).map(function(i) {\r\n return {\r\n counter: i\r\n }\r\n })];","TestCases":[{"Name":"Lodash","Code":"var result = _.uniq(data);","IsDeferred":false},{"Name":"Ramda without relying on currying or composition","Code":"var result = R.uniq(data);","IsDeferred":false},{"Name":"roll","Code":"function* unique(xs) {\r\n const seen = new Set();\r\n for (const x of xs) {\r\n if (seen.has(x))\r\n continue;\r\n seen.add(x);\r\n yield x;\r\n }\r\n}\r\n\r\nvar result = [...unique(data)];","IsDeferred":false}]}