Detect color
/**
* Detect if string is a color
**/
function isColor (str) {
const style = new Option().style
style.color = str
return style.color === str
}
/**
* Detect if string is a color
**/
function isColor (str) {
const style = new Option().style
style.color = str
return style.color === str
}