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 the clear and delete function to verify if deletion actually occurred.

Type Parameters

  • T

Hierarchy

  • RemoteSet

Implemented by

Properties

Methods

Properties

size: Promise<number>

Returns the number of values in the Set object.

Returns

the number of values in the Set object

Methods

  • The iterator over this set.

    Returns

    a iterator over this set

    Returns IterableIterator<T>

  • Removes all elements from the Set object.

    Returns

    a Promise resolving to true if the elements were removed from this set, otherwise resolves to false

    Returns Promise<boolean>

  • Removes the specified element from this set if it is present.

    Returns

    a Promise resolving to true if the elements were removed from this set, otherwise resolves to false

    Parameters

    • value: T

      the value to be removed from this set, if present

    Returns Promise<boolean>

  • Returns true if this set contains the specified element.

    Returns

    a Promise resolving to true if set contains the value, or false if not

    Parameters

    • value: T

      whose presence in this set is to be tested

    Returns Promise<boolean>