Class ArrayIterable<T>

A basic Iterable implementation that uses an array as a backend.

Type Parameters

  • T

Hierarchy

Constructors

Properties

index: number = 0

The current index of the iterable.

items: T[]

Items to use for this iterable.

Methods

  • Get the item of this iterable at the given index, if one exists.

    Returns

    Promise<any|undefined>

    Parameters

    • i: number

    Returns Promise<undefined | T>

  • Instantiate a new injectable using the container.

    Type Parameters

    • T

    Parameters

    • target: any
    • Rest ...parameters: any[]

    Returns T