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

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


Parameters

list
required
Type: List | Iterator
mapping
required
Type: Function(element)

Return value

Type: Array