|On this page|
A negative index value will count from the end of the array, so a value of -1 will remove the last value, -2 the penultimate, and so forth.
The array to remove value from.
The index to remove the value from.
If the index was not in the array this value is used for the removed value.
The resulting array after the value at index is removed or the input array if the index is not valid.
The value that was removed from the array or default value if the index was not valid for the input array.