Replaces an element of the array with the new element. The new element cannot already be a member of the array. The array is modified in-place.
The array to search within.
The element in the array that will be replaced.
The element to be inserted into the array at the position of oldChild.
oldChild
Replaces an element of the array with the new element. The new element cannot already be a member of the array. The array is modified in-place.