ICollection#

Interface ICollection

Hierarchy

  • ICollection

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) => Promise<any>)

      The callback function.

        • (nodeID): Promise<any>
        • Parameters

          • nodeID: number

          Returns Promise<any>

    Returns Promise<any>

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

    Parameters

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

      The callback function.

        • (nodeID): Promise<any>
        • Parameters

          • nodeID: number

          Returns Promise<any>

    Returns Promise<any>

  • Returns number

    The number of elements inside a collection.