Overview of Set (Collection) in JavaScript
Set type is provided. A typical Set implementation should support: values (all elements), size (count), has (existence check), add (insert), remove (delete), union (combine two sets), intersection (common elements), difference (elements in one but not the other), and subset (check if one set is contained within another).