{"ScriptPreparationCode":"var smalldata = [1,2,3,4,5,\u0027ok\u0027,\u0027abc\u0027,\u0027def\u0027,null,undefined,1,2,3,\u0027ok\u0027];\r\nvar bigdata = [1,2,3,4,5,\u0027ok\u0027,\u0027abc\u0027,\u0027def\u0027,null,undefined,1,2,3,\u0027ok\u0027,1,2,3,4,5,\u0027ok\u0027,\u0027abc\u0027,\u0027def\u0027,null,undefined,1,2,3,\u0027ok\u0027,1,2,3,4,5,\u0027ok\u0027,\u0027abc\u0027,\u0027def\u0027,null,undefined,1,2,3,\u0027ok\u0027,1,2,3,4,5,\u0027ok\u0027,\u0027abc\u0027,\u0027def\u0027,null,undefined,1,2,3,\u0027ok\u0027,1,2,3,4,5,\u0027ok\u0027,\u0027abc\u0027,\u0027def\u0027,null,undefined,1,2,3,\u0027ok\u0027,1,2,3,4,5,\u0027ok\u0027,\u0027abc\u0027,\u0027def\u0027,null,undefined,1,2,3,\u0027ok\u0027,1,2,3,4,5,\u0027ok\u0027,\u0027abc\u0027,\u0027def\u0027,null,undefined,1,2,3,\u0027ok\u0027,1,2,3,4,5,\u0027ok\u0027,\u0027abc\u0027,\u0027def\u0027,null,undefined,1,2,3,\u0027ok\u0027,1,2,3,4,5,\u0027ok\u0027,\u0027abc\u0027,\u0027def\u0027,null,undefined,1,2,3,\u0027ok\u0027];\r\n\r\nvar uniq = (arr) =\u003E {\r\n var dups = new Set();\r\n return arr.filter((v) =\u003E {\r\n if (dups.has(v)) {\r\n return false;\r\n }\r\n dups.add(v);\r\n return true;\r\n });\r\n};\r\n\r\nvar uniqset = (arr) =\u003E [...(new Set(arr))];","TestCases":[{"Name":"lodash/uniq","Code":"_.uniq(smalldata);\r\n_.uniq(bigdata);","IsDeferred":false},{"Name":"filter\u002Bset","Code":"uniq(smalldata);\r\nuniq(bigdata);","IsDeferred":false},{"Name":"array\u2192set\u2192array","Code":"uniqset(smalldata);\r\nuniqset(bigdata);","IsDeferred":false}]}