Use Set in Javascript
· ☕ 4 min read
Set was introduced in ES6 and is a collection of values without keys. It has one killer feature that you want to use - filtering duplicates owing to its feature of allowing only unique values.
So.. set? People from other languages may be familiar with sets, maps and arrays.. and the confusion that comes with them.