function
lengthState
Classify a title or description against inclusive advisory bounds.
Arguments
| Argument | Type | Description |
|---|---|---|
text | string | The text value. |
minLength | number | The minLength value. |
maxLength | number | The maxLength value. |
Returns
The declared result.
LengthStateFull signature
function lengthState(
text: string,
minLength: number,
maxLength: number,
): LengthStateRelated types
LengthStateLength classification, progress, and remaining character count.