isStringLength()function
isStringLength(value: unknown, min = 0, max = Number.POSITIVE_INFINITY): value is string
| Param | Type | |
|---|---|---|
value | unknown | The value to check. required |
min | unknown | The minimum allowed length (defaults to 0). Defaults to 0 |
max | unknown | The maximum allowed length (defaults to Infinity). Defaults to Number.POSITIVE_INFINITY |
| Return | |
|---|---|
value is string | true if value is a string within the length bounds, otherwise false. |
Is a value a string with a length between min and max?