Replaces the first array element matching the given value with the given replacement.
the original element if replaced, undefined otherwise
Replaces the first array element matching the given value with the given replacement.