Warning

Nightly releases are generated automatically from the latest source code and are intended for experimental purposes only. These builds may contain incomplete or untested features, bugs, or security vulnerabilities, and as such, are not for production use. Users should be aware that nightly releases may cause unexpected behavior, data loss, or system instability. Use of these releases is at the user's own risk, and it is advised to have adequate backups before testing. The software is provided as is with no guarantees or support.

ICollection

Interface ICollection

interface ICollection {
    clear(): void;
    copy(other: ICollection): void;
    forNodes(callback: (nodeID: number) => Promise<any>): Promise<any>;
    forRootNodes(callback: (nodeID: number) => Promise<any>): Promise<any>;
    getNodeCount(): number;
}

Methods

  • Removes all elements from a collection without deleting the collection itself.

    Returns void

  • Creates a copy of a given collection.

    Parameters

    Returns void

  • Applies a callback on all elements of a collection.

    Parameters

    • callback: (nodeID: number) => Promise<any>

      The callback function.

    Returns Promise<any>

  • Applies a callback on all root node elements of a collection.

    Parameters

    • callback: (nodeID: number) => Promise<any>

      The callback function.

    Returns Promise<any>

  • Returns number

    The number of elements inside a collection.