packages/browser-sync-ui/lib/hooks.js
function (hooks) {
        var obj = {};
        hooks.forEach(function (elements) {
            elements.forEach(function (item) {
                if (!obj[item.name]) {
                    obj[item.name] = item;
                }
            });
        });
        return obj;
    }
function (hooks) {
        var obj = {};
        hooks.forEach(function (elements) {
            elements.forEach(function (item) {
                if (!obj[item.name]) {
                    obj[item.name] = item;
                }
            });
        });
        return obj;
    }
function ( hooks ) { var obj = { } ; hooks . forEach ( function ( elements ) { elements . forEach ( function ( item ) { if ( ! obj [ item . name ] ) { obj [ item . name ] = item ; } } ) ; } ) ; return obj ; }
Allow plugins to register toggle-able elements
@param hooks
@returns {{}}
Allow plugins to register toggle - able elements