code: function pick(obj, keys) {
    const res = {}
    const len = keys.length
    let idx = -1
    let key
  
    while (++idx < len) {
      key = keys[idx]
      if (key in obj) {
        res[key] = obj[key]
      }
    }
    return res
  }
docs: this was the fastest implementation from testing: https://jsperf.com/pick-props