Edit this page

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

This feature is experimental. It may be changed or removed in a future version.

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


Parameters

list ListorIterator
mapping Function(element)

Return value

Array