The type of elements in the set
Returns whether the set is empty
Gets the number of elements in the set
Returns an iterator for the set's items
Returns the element at the specified index in the sorted order
The zero-based index of the element to get
The element at the specified index, or undefined if the index is out of range
Clears all items from the set
Checks if an item exists in the set
The item to check
True if the item exists; false otherwise
Inserts an item into the set if it's not already present
The item to insert
True if the item was added; false if an equal item already exists
Removes an item from the set
The item to remove
True if the item was removed; false if it wasn't found
Returns all items in the set as an array, in sorted order
A collection of unique items that are automatically maintained in sorted order, similar to C#'s SortedSet.