Skip to main content

core.countwhere

Home > @medplum/core > countWhere

countWhere() function​

Signature:

export declare function countWhere<T>(items: Iterable<T>, fn: (value: T) => boolean): number;

Parameters​

Parameter

Type

Description

items

Iterable<T>

fn

(value: T) => boolean

Returns:

number