isStringLength()function

isStringLength(value: unknown, min = 0, max = Number.POSITIVE_INFINITY): value is string
ParamType
valueunknown
The value to check. 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
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?