Home > @websublime/schema > NumberSchemaType > max
NumberSchemaType.max() method
Test value if it is lower or equal to maximum value
Signature:
max(max: number, errorMessage?: string): this;
Parameters
Parameter | Type | Description |
---|---|---|
max | number | Maximum value |
errorMessage | string | Error message |
Returns:
this