Picks the properties from the source object specified by the keys array and returns a new object with those properties.
The source object to pick properties from.
Spread of keys to pick from the source object.
A new object with the picked properties.
pick({ a: 1, b: 2, c: 3 }, 'a', 'c')// => { a: 1, c: 3 } Copy
pick({ a: 1, b: 2, c: 3 }, 'a', 'c')// => { a: 1, c: 3 }
Picks the properties from the source object specified by the keys array and returns a new object with those properties.