core.isquantity
Home > @medplum/core > isQuantity
isQuantity() function
Determines if the input is a Quantity object. This is heuristic based, as we do not have strong typing at runtime.
Signature:
export declare function isQuantity(input: unknown): input is Quantity;
Parameters
Parameter  | Type  | Description  | 
|---|---|---|
input  | unknown  | The input value.  | 
Returns:
input is Quantity
True if the input is a quantity.