Skip to main content

core.isperiod

Home > @medplum/core > isPeriod

isPeriod() function

Determines if the input is a Period object. This is heuristic based, as we do not have strong typing at runtime.

Signature:

export declare function isPeriod(input: unknown): input is Period;

Parameters

Parameter

Type

Description

input

unknown

The input value.

Returns:

input is Period

True if the input is a period.