function register(name, factory) {
    if(isObject(name)) {
      var filters = {};
      forEach(name, function(filter, key) {
        filters[key] = register(key, filter);
      });
      return filters;
    } else {
      return $provide.factory(name + suffix, factory);
    }
  }
@ngdoc function
@name ng.$controllerProvider#register
@methodOf ng.$controllerProvider
@param {string|Object} name Name of the filter function, or an object map of filters where
   the keys are the filter names and the values are the filter factories.
@returns {Object} Registered filter instance, or if a map of filters was provided then a map
   of the registered filter instances.