Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "IsUUID"

Index

Functions

Functions

isUUID

  • isUUID(value: string, version?: 3 | 4 | 5): boolean
  • Checks if the string is a UUID (version 3, 4 or 5). If given value is not a string, then it returns false.

    Parameters

    • value: string

      The value being checked.

    • Optional version: 3 | 4 | 5

      The UUID version (3, 4 or 5)

    Returns boolean

    True if the string is a UUID, false otherwise.

Generated using TypeDoc