getColor

private getColor(color: string | number | (string | number)[]) → {string | string[]}

Utility function to convert hexadecimal colors to strings, and simply return the color if it's a string. This version can also convert array of colors

Parameters:
Name Type Description
color string | number | (string | number)[]
Returns:
Type Description
string | string[]

The color as a string.

Powered by webdoc!