Unique Values with Set
Sets
π¨βπΌ We collect tags from multiple sources and need to remove duplicates.
π¨ Open
and:
- Create a
Setfrom the tags array - Check whether "typescript" is present
- Convert the set back into an array
π MDN - Set