isStringBetween()function

isStringBetween(str: string, min = 0, max = Number.POSITIVE_INFINITY): boolean
ParamType
strstring
The string to measure. required
minunknown
The minimum allowed length (defaults to 0). Defaults to 0
maxunknown
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?