code: function pick(obj, keys) {
    var result = {};
    for (var i = 0, length = keys.length; i < length; i++) {
      var key = keys[i];
      if (key in obj) result[key] = obj[key];
    }
    return result;
  }
docs: Returns a copy of `obj` containing only the properties given by `keys`.