Hierarchy

Constructors

Accessors

Methods

Constructors

  • Parameters

    • Optional array: Dataset[]

      Array.

    • Optional options: Options

      Collection options.

    Returns Collection

Accessors

  • get length(): number
  • The length of the collection. Shorthand for getLength

    Returns number

  • set length(length: number): void
  • Change the length of the collection

    Parameters

    • length: number

    Returns void

Methods

  • Add a Dataset to the collection

    Returns

    New length of the collection.

    Parameters

    • dataset: Dataset

      to add

    • index: undefined | number = ...

      the Dataset will be added to.

    Returns number

  • Is dataset in collection

    Parameters

    Returns boolean

  • Move a Dataset in the collection to at specific postion

    Parameters

    • from: number

      Index of the Dataset to move

    • to: number

      The index the Dataset will be moved to

    Returns void

  • Remove a Dataset from the collection

    Returns

    The removed Dataset or undefined if none found.

    Parameters

    Returns undefined | Dataset

  • Toggle a Dataset in the collection

    Parameters

    Returns void

Generated using TypeDoc