Removes an element from the specified array at the given index and returns the removed element.
The array from which to remove the element.
The zero-based index of the element to remove. Negative indices count from the end.
The removed element if the index is valid; otherwise, undefined.
undefined
This function mutates the original array.
4.0.0
2026-08-17
Removes an element from the specified array at the given index and returns the removed element.