packages/browser-sync/lib/public/public-utils.js
function(name, args) {
        if (name === "stream") {
            return true;
        }

        if (name !== "reload") {
            return false;
        }

        var firstArg = args[0];

        /**
         * If here, it's reload with args
         */
        if (_.isObject(firstArg)) {
            if (!Array.isArray(firstArg) && Object.keys(firstArg).length) {
                return firstArg.stream === true;
            }
        }

        return false;
    }
function(name, args) {
        if (name === "stream") {
            return true;
        }

        if (name !== "reload") {
            return false;
        }

        var firstArg = args[0];

        /**
         * If here, it's reload with args
         */
        if (_.isObject(firstArg)) {
            if (!Array.isArray(firstArg) && Object.keys(firstArg).length) {
                return firstArg.stream === true;
            }
        }

        return false;
    }
function ( name , args ) { if ( name === "stream" ) { return true ; } if ( name !== "reload" ) { return false ; } var firstArg = args [ 0 ] ; /**
         * If here, it's reload with args
         */ if ( _ . isObject ( firstArg ) ) { if ( ! Array . isArray ( firstArg ) && Object . keys ( firstArg ) . length ) { return firstArg . stream === true ; } } return false ; }
This code handles the switch between .reload & .stream
since 2.6.0
@param name
@param args
@returns {boolean}
This code handles the switch between . reload & . stream since 2 . 6 . 0