Skip to content

Function: isValidColor() ​

ts
function isValidColor(value): value is string;

Experimental

True if value is a string d3-color can parse.

Parameters ​

ParameterType
valueunknown

Returns ​

value is string

Released under the MIT License.