JavaScript Sets
A JavaScript Set is a collection of unique values. Each value can only occur once in a Set. Essential Set Methods Method Description new Set() Creates a new Set add() Adds a new element to the Set delete() Removes an element from a Set has() Returns true if a value exists in the Set forEach()… Read More »