packages/browser-sync/lib/browser-sync.js
function setOptions(bs, options) {
    /**
     * If multiple options were set, act on the immutable map
     * in an efficient way
     */
    if (Object.keys(options).length > 1) {
        bs.setMany(function(item) {
            Object.keys(options).forEach(function(key) {
                item.set(key, options[key]);
                return item;
            });
        });
    } else {
        Object.keys(options).forEach(function(key) {
            bs.setOption(key, options[key]);
        });
    }
}
function setOptions(bs, options) {
    /**
     * If multiple options were set, act on the immutable map
     * in an efficient way
     */
    if (Object.keys(options).length > 1) {
        bs.setMany(function(item) {
            Object.keys(options).forEach(function(key) {
                item.set(key, options[key]);
                return item;
            });
        });
    } else {
        Object.keys(options).forEach(function(key) {
            bs.setOption(key, options[key]);
        });
    }
}
function setOptions ( bs , options ) { /**
     * If multiple options were set, act on the immutable map
     * in an efficient way
     */ if ( Object . keys ( options ) . length > 1 ) { bs . setMany ( function ( item ) { Object . keys ( options ) . forEach ( function ( key ) { item . set ( key , options [ key ] ) ; return item ; } ) ; } ) ; } else { Object . keys ( options ) . forEach ( function ( key ) { bs . setOption ( key , options [ key ] ) ; } ) ; } }
Update the options Map
@param bs
@param options
Update the options Map