Home > @websublime/schema > NumberSchemaType > range
NumberSchemaType.range() method
Test if value is between the range
Signature:
range(min: number, max: number, errorMessage?: string): this;
Parameters
Parameter | Type | Description |
---|---|---|
min | number | Minimum value |
max | number | Maximum value |
errorMessage | string | Error message |
Returns:
this