Documentation
    Preparing search index...

    Function removeAt

    • Removes an element by index from an array.

      Type Parameters

      • T

        type of the array element. The type parameter is intentionally declared as such to avoid handling tuples. While it is possible to remove item from tuple, it will impact typing soundness.

      Parameters

      • array: T[]

        array to remove the element from.

      • index: number

        index of the array element to be removed.

      Returns boolean

      true if the index is within the indexable range of array, and thus the item has been removed; false otherwise.