Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isHex

  • isHex(val: string): boolean
  • Checks for a valid hexadecimal value.

    example

    isHex('ff'); // true isHex('ffFF'); // true isHex('fF0'); // true isHex(0.287); // false isHex(true); // false

    Parameters

    • val: string

      The value to check.

    Returns boolean

    Whether the value is hexadecimal.

Legend

  • Function

Generated using TypeDoc