ixfx
    Preparing search index...

    Function remove

    • Removes an element at index index from data, returning the resulting array without modifying the original.

      import { Arrays } from 'https://unpkg.com/ixfx/dist/data.js';

      const v = [ 100, 20, 50 ];
      const vv = Arrays.remove(2);

      Yields:
      v: [ 100, 20, 50 ]
      vv: [ 100, 20 ]

      Consider without if you want to remove an item by value.

      Throws an exception if index is outside the range of data array.

      Type Parameters

      • V

        Type of array

      Parameters

      • data: readonly V[] | V[]

        Input array

      • index: number

        Index to remove

      Returns V[]