Select object keys
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.travis.yml
LICENSE
README.md
package.json

README.md

select-keys Build Status

Select certain keys from an object

Installation

npm install select-keys

Usage

var selectKeys = require('select-keys');
selectKeys({ a: 42, b: 'foo', c: 1337 }, ['a', 'c']); // => { a: 42, c: 1337 }