0.0.1 • Published 7 years ago
object.select v0.0.1
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.
0.0.1
7 years ago