Creates a new object composed of the picked object properties.
The source object
The property names to pick
A new object containing only the picked properties
const subset = pick({ a: 1, b: 2, c: 3 }, 'a', 'c'); // { a: 1, c: 3 } Copy
const subset = pick({ a: 1, b: 2, c: 3 }, 'a', 'c'); // { a: 1, c: 3 }
Creates a new object composed of the picked object properties.