Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isHexColor

  • isHexColor(val: string): boolean
  • Checks for a valid hex color value.

    example

    isHexColor('#333'); // true isHexColor('#444444'); // true isHexColor('#abc123'); // true isHexColor(0.287); // false isHexColor(true); // false

    Parameters

    • val: string

      The value to check.

    Returns boolean

    Whether the value is hex color.

Legend

  • Function

Generated using TypeDoc