{"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","Code":"var result = R.uniq(data);","IsDeferred":false},{"Name":"Set","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}]}