wima
    Preparing search index...

    Function swapRemove

    • Removes an element by its index from an array by swapping it with the last element and popping it off the array. Use this when order of elements in the array do not matter.

      Type Parameters

      • T

      Parameters

      • arr: T[]
      • index: number

      Returns void