{"ScriptPreparationCode":"var elements = [1,2,3,1,2,4,2,3,5,3]","TestCases":[{"Name":"_.uniq","Code":"_.uniq(elements)","IsDeferred":false},{"Name":"set","Code":"[...new Set(elements)]","IsDeferred":false},{"Name":"uniq by filter","Code":"elements.filter((v, i, a) =\u003E a.indexOf(v) === i)","IsDeferred":false},{"Name":"uniq by qiankun","Code":"elements.filter(function filter(element) {\r\n return element in this ? false : ((this)[element] = true);\r\n }, Object.create(null));","IsDeferred":false},{"Name":"uniq by filter \u0026 set","Code":"const seen = new Set();\r\nelements.filter(( x) =\u003E {\r\n if(seen.has(x)) return false;\r\n seen.add(x);\r\n return true\r\n });","IsDeferred":false}]}