lib/reporters/cli/cli-utils.js
function (color) {
        return (color === 'off') || (color !== 'on') &&
            (Boolean(process.env.CI) || !process.stdout.isTTY); // eslint-disable-line no-process-env
    }
function (color) {
        return (color === 'off') || (color !== 'on') &&
            (Boolean(process.env.CI) || !process.stdout.isTTY); // eslint-disable-line no-process-env
    }
function ( color ) { return ( color === 'off' ) || ( color !== 'on' ) && ( Boolean ( process . env . CI ) || ! process . stdout . isTTY ) ; // eslint-disable-line no-process-env }
A CLI utility helper method that checks for the non TTY compliance of the current run environment.

color:     |  noTTY:
'on'      -> false
'off'     -> true
otherwise -> Based on CI or isTTY.

@param {String} color - A flag to indicate usage of the --color option.
@returns {Boolean} - A boolean value depicting the result of the noTTY check.
A CLI utility helper method that checks for the non TTY compliance of the current run environment .