Using JavaScript Sets
A useful data structure that models the properties of mathematical sets
Nov 5 · 9 min read
In JavaScript, Set objects are objects that hold collections of values. They can be iterated in the order they’re inserted. Each value in a Set may occur only once. This means that a Set in JavaScript is consistent with sets in math.


