Skip to content

UseFlatMap

katanakit-js / useFlatMap

function useFlatMap<T, U>(array, transform): U[];

Defined in: core/services/array.service.ts:497

Maps to collections and flattens one level. See ArrayService.useFlatMap.

Type Parameter
T
U
Parameter Type
array NullableArray<T>
transform (item, index, array) => readonly U[]

U[]