Created
January 5, 2022 04:09
-
-
Save jonrandy/40a7af586e860663d709d79281fa308f to your computer and use it in GitHub Desktop.
isValidCSSColour
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const isValidCSSColour = str => { | |
const s = new Option().style | |
s.color = str | |
return s.color != '' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment