TIL: Unique Array in JS
The first searches I took brought me to an older answer which has you using
filter to build the unique array:
Which works just fine… but it’s pretty ugly looking.
Then I searched some more and found out that the added a
Set method in ES6:
This one is much cleaner.