{"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 uniqBy = (arr, fn) =\u003E {\r\n var dups = new Set();\r\n return arr.filter((v) =\u003E {\r\n const k = fn(v);\r\n if (dups.has(k)) {\r\n return false;\r\n }\r\n dups.add(k);\r\n return true;\r\n });\r\n};\r\n","TestCases":[{"Name":"lodash/uniqBy","Code":"_.uniqBy(smalldata, (v) =\u003E v);\r\n_.uniqBy(bigdata, (v) =\u003E v);","IsDeferred":false},{"Name":"filter\u002Bset","Code":"uniqBy(smalldata, (v) =\u003E v);\r\nuniqBy(bigdata, (v) =\u003E v);","IsDeferred":false}]}