demo/www/lib/angular-ui-router/src/common.js
function filterByKeys(keys, values) {
  var filtered = {};

  forEach(keys, function (name) {
    filtered[name] = values[name];
  });
  return filtered;
}
function filterByKeys(keys, values) {
  var filtered = {};

  forEach(keys, function (name) {
    filtered[name] = values[name];
  });
  return filtered;
}
function filterByKeys ( keys , values ) { var filtered = { } ; forEach ( keys , function ( name ) { filtered [ name ] = values [ name ] ; } ) ; return filtered ; }
Returns the subset of an object, based on a list of keys.

@param {Array} keys
@param {Object} values
@return {Boolean} Returns a subset of `values`.
Returns the subset of an object based on a list of keys .