Represents a selection state.
Readonly
Number of items in the selection.
Adds a value to the selection.
Adds all values to the selection.
iterable of values.
Clears the selection.
Removes the value.
Returns true if the value existed and has been removed, or false if it does not exist.
Removes the values.
Returns true if the all values existed and are removed, or false if a value does not exist.
a boolean indicating whether an object exists or not.
Registers event listener.
Represents a selection state.