core.flatmapfilter
Home > @medplum/core > flatMapFilter
flatMapFilter() function
Signature:
export declare function flatMapFilter<T, U>(arr: T[], fn: (value: T, idx: number) => U | undefined): U[];
Parameters
Parameter | Type | Description |
---|---|---|
arr | T[] | |
fn | (value: T, idx: number) => U | undefined |
Returns:
U[]