rx-datatable API
    Preparing search index...

    Interface ISet<K>

    Set interface. Note: BTree<K,V> does not officially implement this interface, but BTree can be used as an instance of ISet.

    interface ISet<K = any> {
        size: number;
        add(key: K): any;
        clear(): void;
        delete(key: K): boolean;
        has(key: K): boolean;
        keys(): IterableIterator<K>;
    }

    Type Parameters

    • K = any

    Hierarchy (View Summary)

    Index
    size: number

    Returns the number of key/value pairs in the map object.

    • Adds the specified item to the set, if it was not in the set already.

      Parameters

      • key: K

      Returns any

    • Returns true if an element in the map object existed and has been removed, or false if the element did not exist.

      Parameters

      • key: K

      Returns boolean

    • Returns a boolean asserting whether the key exists in the map object or not.

      Parameters

      • key: K

      Returns boolean

    • Returns a new iterator for iterating the items in the set (the order is implementation-dependent).

      Returns IterableIterator<K>