Create a shallow copy of an input object that contains only the specified properties.
npm install @ndhoule/pickCreate a shallow copy of an input object that contains only the specified properties.
``sh`
$ component install ndhoule/pick
$ npm install @ndhoule/pick
Return a shallow copy of an input object containing only a specified list of properties.
`javascript
var person = { name: 'Tim', occupation: 'enchanter', fears: 'rabbits' };
pick('name', person);
//=> { name: 'Tim' }
pick(['name', 'fears'], person);
//=> { name: 'Tim', fears: 'rabbits' }
``
Released under the MIT license.
[ci-link]: https://travis-ci.org/ndhoule/pick
[ci-badge]: https://travis-ci.org/ndhoule/pick.svg?branch=master