Quick Tip: Unique JavaScript Arrays using the Set Object

preview_player
Показать описание

--

The javascript Set object is powerful. Here, we use it as an easy mechanism to filter down unique values of an array!
Рекомендации по теме
Комментарии
Автор

Neat trick. I'm so used to filter method that I forget there is an easier way with new Set and then spread operator. Thanks for reminding about this ES6 feauture.

CostaKazistov