iscolor method
- Node n
Returns true if a value is a color, false otherwise.
Parameters: value - a value or variable being evaluated. Returns: true if value is a color, false otherwise. Example: iscolor(#ff0); // true iscolor("string"); // false
Implementation
Keyword iscolor(Node n) => (n is Color) ? Keyword.True() : Keyword.False();