Skip to main content

core.flatmapfilter

Home > @medplum/core > flatMapFilter

flatMapFilter() function

Signature:

export declare function flatMapFilter<T, U>(arr: T[] | undefined, fn: (value: T, idx: number) => U | undefined): U[];

Parameters

Parameter

Type

Description

arr

T[] | undefined

fn

(value: T, idx: number) => U | undefined

Returns:

U[]