Edit this page

up.util up.util.flatMap(list, mapping)
JavaScript function

This feature is experimental. Please share your experiences so we know what to keep or change.

Maps each element using a mapping function, then flattens the result into a new array.


Parameters

list ListorIterator
mapping Function(element)

Return value

Array