Function isValidCSSUnit

  • Check to see if it looks like a CSS unit (see matchers above for definition).

    Parameters

    • color: string | number

    Returns boolean