kaven-basic - v6.0.0
    Preparing search index...

    Function ArrayRemoveByIndex

    • Removes an element from the specified array at the given index and returns the removed element.

      Type Parameters

      • T

      Parameters

      • array: T[]

        The array from which to remove the element.

      • index: number

        The zero-based index of the element to remove.

      Returns undefined | T

      The removed element if the index is valid; otherwise, undefined.

      This function mutates the original array.

      4.0.0

      2021-12-14