@microsoft/fast-colors > isColorNamed
isColorNamed() function
Tests whether a color is in NamedColors.
Signature:export declare function isColorNamed(raw: string | NamedColors): raw is NamedColors;
Parameters
Parameter | Type | Description |
---|---|---|
raw | string | NamedColors | the color name to test |
raw is NamedColors