Home > @websublime/schema > ArraySchemaType > rangeLength
ArraySchemaType.rangeLength() method
Test if array length is between range
Signature:
rangeLength(minLength: number, maxLength: number, errorMessage?: string): this;
Parameters
Parameter | Type | Description |
---|---|---|
minLength | number | Minimum length |
maxLength | number | Maximum length |
errorMessage | string | Error message |
Returns:
this