const obj = {x: 1, y: 2} // const k = _.pick(obj, function(v, k) { // return k === 'x'; // }) // console.log(k.x); console.log(_.pick(obj, ['x']));