Skip to main content
fixed to add suggestion from @imdzeeshan
Source Link
Ben Clayton
  • 82.4k
  • 26
  • 123
  • 129

use:

array.splice(12, 1);

This removes the 1stone item from the array., starting at index 2 (3rd item)

use:

array.splice(1, 1);

This removes the 1st item from the array.

use:

array.splice(2, 1);

This removes one item from the array, starting at index 2 (3rd item)

deleted 21 characters in body
Source Link
gdoron
  • 150.6k
  • 59
  • 302
  • 375

use:

array.splice(1, 1);

This removes the 1th 1st item from the array.

use:

array.splice(1, 1);

This removes the 1th 1st item from the array.

use:

array.splice(1, 1);

This removes the 1st item from the array.

added 21 characters in body
Source Link
Nathan Taylor
  • 24.7k
  • 20
  • 102
  • 158

use:

array.splice(1, 1);

This removes the 1th1th 1st item from the array.

use:

array.splice(1, 1);

This removes the 1th item from the array.

use:

array.splice(1, 1);

This removes the 1th 1st item from the array.

Source Link
Ben Clayton
  • 82.4k
  • 26
  • 123
  • 129
Loading