core.toperiod
Home > @medplum/core > toPeriod
toPeriod() function
Tries to convert an unknown input value to a Period object.
Signature:
export declare function toPeriod(input: unknown): Period | undefined;
Parameters
Parameter | Type | Description |
---|---|---|
input | unknown | Unknown input value. |
Returns:
Period | undefined
A Period object or undefined.