Tests if the string's length falls in a range. Note: this function takes into account surrogate pairs. If given value is not a string, then it returns false.
expect(isInRange(2,1,3).value).toBeTruthy()
The value being checked.
The min value to perform the check against.
Optional
The max value to perform the check against, infinity if not defined.
Generated using TypeDoc
Tests if the string's length falls in a range. Note: this function takes into account surrogate pairs. If given value is not a string, then it returns false.
Example