Returns a new object with only the specified keys from the input object.
The input object to pick keys from.
An array of keys to pick from the input object.
pick({ a: 1, b: '2', c: true }, ['a', 'c']); // returns { a: 1, c: true } Copy
pick({ a: 1, b: '2', c: true }, ['a', 'c']); // returns { a: 1, c: true }
Generated using TypeDoc
Returns a new object with only the specified keys from the input object.