packages/prepare/src/BasePrepare.js
function findTextStyle(item, queue)
{
    if (item instanceof TextStyle)
    {
        if (queue.indexOf(item) === -1)
        {
            queue.push(item);
        }

        return true;
    }

    return false;
}
function findTextStyle(item, queue)
{
    if (item instanceof TextStyle)
    {
        if (queue.indexOf(item) === -1)
        {
            queue.push(item);
        }

        return true;
    }

    return false;
}
function findTextStyle ( item , queue ) { if ( item instanceof TextStyle ) { if ( queue . indexOf ( item ) === - 1 ) { queue . push ( item ) ; } return true ; } return false ; }
Built-in hook to find TextStyle objects.

@private
@param {PIXI.TextStyle} item - Display object to check
@param {Array<*>} queue - Collection of items to upload
@return {boolean} if a PIXI.TextStyle object was found.
Built - in hook to find TextStyle objects .