• Tests whether the target string length is valid

    Example

    expect(isLength('abcd', 2).value).toBeTruthy()
    

    Parameters

    • target: string

      The target

    • min: number = 0

      The minimum length

    • max: number = Infinity

      The maximum length - Infinity if not defined

    Returns Result<boolean | undefined>

Generated using TypeDoc