{"ScriptPreparationCode":"var array = Array.from({length: 40}, () =\u003E Math.floor(Math.random() * 140));","TestCases":[{"Name":"Set spread","Code":"const f = [... new Set(array)]","IsDeferred":false},{"Name":"Array from set","Code":"const s = new Set(array)\r\nconst l = Array.from(s)","IsDeferred":false},{"Name":"Filter","Code":"const b = array.filter((i,index) =\u003E array.indexOf(i)=== index)","IsDeferred":false},{"Name":"Reduce","Code":"const r = array.reduce((previous, current) =\u003E {\r\n if(!previous.includes(current)) {\r\n previous.push(current);\r\n }\r\n return previous;\r\n }, []);","IsDeferred":false}]}