packages/text/src/TextStyle.js
function getSingleColor(color)
{
    if (typeof color === 'number')
    {
        return hex2string(color);
    }
    else if ( typeof color === 'string' )
    {
        if ( color.indexOf('0x') === 0 )
        {
            color = color.replace('0x', '#');
        }
    }

    return color;
}
function getSingleColor(color)
{
    if (typeof color === 'number')
    {
        return hex2string(color);
    }
    else if ( typeof color === 'string' )
    {
        if ( color.indexOf('0x') === 0 )
        {
            color = color.replace('0x', '#');
        }
    }

    return color;
}
function getSingleColor ( color ) { if ( typeof color === 'number' ) { return hex2string ( color ) ; } else if ( typeof color === 'string' ) { if ( color . indexOf ( '0x' ) === 0 ) { color = color . replace ( '0x' , '#' ) ; } } return color ; }
Utility function to convert hexadecimal colors to strings, and simply return the color if it's a string.
@private
@param {number|number[]} color
@return {string} The color as a string.
Utility function to convert hexadecimal colors to strings and simply return the color if it s a string .