Removes the first matching element from the given array. If the array doesn't contain the element it's left as is.
the original element if removed, undefined otherwise
Removes the first matching element from the given array. If the array doesn't contain the element it's left as is.