core.iscoding
Home > @medplum/core > isCoding
isCoding() function
Returns true if the input value is a Coding object. This is a heuristic check based on the presence of the "code" property.
Signature:
export declare function isCoding(value: unknown): value is Coding & {
code: string;
};
Parameters
Parameter | Type | Description |
---|---|---|
value | unknown | The candidate value. |
Returns:
value is Coding & { code: string; }
True if the input value is a Coding.