{"ScriptPreparationCode":"var a = [],i;\r\nfor (i = 0; i \u003C 1000; i\u002B\u002B) \r\n a.push(Math.floor(Math.random() * 1000) \u002B 1);\r\n\r\nvar unique = (function(){\r\n let keys = Object.keys;\r\n return function(arr){\r\n let ob = {};\r\n let len = arr;\r\n let retArr=[];\r\n for(let i=0;i\u003Clen;i\u002B\u002B){\r\n if(ob[arr[i]] === undefined){\r\n \tob[arr[i]]=1;\r\n retArr.push(arr[i]);\r\n }\r\n }\r\n return retArr;\r\n }\r\n}());","TestCases":[{"Name":"Lodash","Code":"_.uniq(a)","IsDeferred":false},{"Name":"Set Spread based","Code":"[... new Set(a)]","IsDeferred":false},{"Name":"Set ArrayFrom based","Code":"Array.from(new Set(a))","IsDeferred":false},{"Name":"Object Based Unique","Code":"unique(a)","IsDeferred":false}]}