object.select
v0.0.1
Published
Helper method to pick object properties into a new object.
Downloads
1
Maintainers
Readme
Object.select
Helper method to pick object properties into a new object.
Usage
import select from 'object.select';
const ref = select(user, 'id', 'name');
If you wish to have this as a static function on Object
(hypothetical polyfill):
require('object.select/polyfill');
const ref = Object.select(user, 'id', 'name');
License
Developed and maintained by Mo Valipour.
See license info here.