Install with npm:
$ npm install --save object-pick-ts
import {ObjectPick as pick} from "object-pick-ts";
let result = pick({a: 'a', b: 'b', c: 2}, ['a', 'c']);
//{a: 'a', c: 2};
Related projects object.pick (https://www.npmjs.com/package/object.pick): JS version of this package
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Przemek Struciński (delprzemo)
github/delprzemo License Copyright © 2016, Przemek Struciński. Released under the MIT license.