0.0.1 • Published 7 years ago

object.select v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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.