Returns the replacement object for each passed object that is equal to
the search parameter. If the object does not match the parametersearch, the original object is returned. However, if the defaultparameter is also specified, the object from default will be returned.