• 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

    expect(isInRange(2,1,3).value).toBeTruthy()
    

    Parameters

    • value: number

      The value being checked.

    • min: number

      The min value to perform the check against.

    • Optional max: number

      The max value to perform the check against, infinity if not defined.

    Returns Result<boolean | undefined>

Generated using TypeDoc