rfw2d
    Preparing search index...

    Function swapDeleteAt

    • Delete element at index from an array by swapping it with the last element and then truncating.

      Type Parameters

      • T

      Parameters

      • a: T[]

        Array to delete in

      • index: number

        Index to delete

      Returns undefined | T

      Swapped element, if any