4 ms·well ES6 have Set, const set = new Set(list);by Chyzwar 10y agowell ES6 have Set, const set = new Set(list);