Function isRequiredLength

  • Checks whether a string's length is within an inclusive range.

    Parameters

    • str: string

      Value to measure.

    • minLegth: number = MIN_STR_LEN

      Minimum length; defaults to MIN_STR_LEN.

    • maxLength: number = MAX_STR_LEN

      Maximum length; defaults to MAX_STR_LEN.

    Returns boolean

    true when str is non-empty and within [minLegth, maxLength].

Generated using TypeDoc