Working with ES6 Collections: Set, Map, and Weak References
Set Fundamentals Sets store unique values of any primitive type or object reference. The constructor automatically filters duplicates using the SameValueZero comparison algorithm, which treats NaN values as identical and distinguishes between positive and negative zero. const activeSessions = new Se...