On this page

core.singleton

Home > @medplum/core > singleton

singleton() function​

Signature:

export declare function singleton(collection: TypedValue[], type?: string): TypedValue | undefined;

Parameters​

Parameter

Type

Description

collection

TypedValue[]

type

string

(Optional)

Returns:

TypedValue | undefined