Remove duplicate items in an array with one line of Javascript

preview_player
Показать описание
This is a little trick I use a lot to remove duplicate data items from an array.

---

---

#javascript #programming #trick #webdevelopment #tips
Рекомендации по теме
Комментарии
Автор

You can do it another way: const output = [...new Set(arr)]

DnlGalvan
visit shbcf.ru