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

ParameterTypeDescription
inputunknownThe input value.

Returns:

input is Period

True if the input is a period.