Maps each element using a mapping function, then flattens the result into a new array.
Tip Your coding agent can search these docs locally with the Unpoly agent skill