Represents an immutable collection of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists.

Type Parameters

  • Item = unknown

Hierarchy (view full)

Implements

Constructors

Accessors

Methods

  • Returns a new iterator object that yields the Items for each element in the List in insertion order.

    Returns Iterator<Item, any, undefined>

  • Determines if the Values are considered equal by comparing the types of both objects and then their attributes. Returns true if both the types and their attributes are equal.

    Parameters

    Returns boolean

  • Finds an item from the List using a predicate.

    Parameters

    • predicate: ((i: Item) => boolean)
        • (i): boolean
        • Parameters

          Returns boolean

    Returns undefined | Item

  • Performs the specified action for each item in the List.

    Parameters

    • callback: ((item: Item) => void)
        • (item): void
        • Parameters

          Returns void

    Returns void

  • Returns the index of an item from the List.

    Parameters

    Returns undefined | number

  • Inverse of the equals method.

    Parameters

    Returns boolean