isStringBetween()function
isStringBetween(str: string, min = 0, max = Number.POSITIVE_INFINITY): boolean
| Param | Type | |
|---|---|---|
str | string | The string to measure. 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 | |
|---|---|
boolean | true if str is within the length bounds, otherwise false. |
Does a string have a length between min and max?