Coffeekraken.io 0.0.1

isColor

Check if the passed value is a color

Name Type Description Status Default
value { Mixed } The value to check required

Return { Boolean } The check result

Example

    isColor('red') => true
isColor('#fff') => true
isColor('hello') => false

See more : http://stackoverflow.com/questions/6386090/validating-css-color-names

Author : Olivier Bossel olivier.bossel@gmail.com