Removes the given element from the given array.
This changes the given array.
The array to change.
The element to remove.
The removed element, or undefined if the array didn't contain the element.
undefined