Returns the number of values in the Set object.
The iterator over this set.
a iterator over this set
Removes all elements from the Set object.
a Promise
resolving to true
if the elements were removed from this set, otherwise resolves to false
Removes the specified element from this set if it is present.
the value to be removed from this set, if present
a Promise
resolving to true
if the elements were removed from this set, otherwise resolves to false
Returns true
if this set contains the specified element.
whose presence in this set is to be tested
a Promise
resolving to true
if set contains the value, or false
if not
A
RemoteSet
is similar to the standard Javascript set, however, operations against it may result in a network operation. Also note, that no mutation is allowed aside from clearing all or removing elements, though even in these cases removal may not be guaranteed; be sure to check the return value from theclear
anddelete
function to verify if deletion actually occurred.