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.
The removed element if the index is valid; otherwise, undefined.
undefined
This function mutates the original array.
4.0.0
2021-12-14
Removes an element from the specified array at the given index and returns the removed element.