DEV Community

Discussion on: 🚀 Quick tips! 3 ways to get unique values from an array. 💜

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

Set also reliably keep what is .add() first as well. But I never really tested [...new Set(arr)] on whether the sequence is kept.