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`.