isColor

Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.is

Check if the passed value is a color

Params

  1. value*-Mixed

    The value to check

Return

  1. -Boolean

    The check result

Example

import { isColor } from '@blackbyte/sugar/is';
isColor('red') => true
isColor('#fff') => true
isColor('hello') => false

Todo

  • testsnormal