1.0.0 • Published 7 years ago
es6-pick v1.0.0
es6-pick
Lodash pick in ES6
const pick = require('es6-pick')
const obj = {
a: 'foo',
b: 'bar',
c: 'baz'
}
pick(obj, 'a')
//=> {a: 'foo'}
pick(obj, ...['a', 'b'])
//=> {a: 'foo', b: 'bar'}
Installation
npm install --save es6-pick
Author
© 2016 Tom Vincent git@tlvince.com (https://tlvince.com)
License
Released under the MIT license.
1.0.0
7 years ago