Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "IsByteLength"

Index

Functions

Functions

isByteLength

  • isByteLength(value: string, min: number, max?: number): boolean
  • Checks if the string's length (in bytes) falls in a range. If given value is not a string, then it returns false.

    Parameters

    • value: string

      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.

    Returns boolean

    True if the check passes, false otherwise.

Generated using TypeDoc