es6-pick

1.0.0 • Public • Published

es6-pick

Build Status npm version License

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.

Readme

Keywords

Package Sidebar

Install

npm i es6-pick

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • tlvince