Replaces each item in the array with the result of an asynchronous or synchronous iterator