Transform an Object that was transformed to return only the original properties recursively picked if they are not undefined.
npm install @ladjs/pick-original




> Transform an Object that was transformed to return only the original properties recursively picked if they are not undefined.
* Install
* Usage
* Contributors
* License
[npm][]:
``sh`
npm install @ladjs/pick-original
`js
const pickOriginal = require('@ladjs/pick-original');
function createObj(doc) {
doc.id = Date.now().toString();
return doc;
}
const original = { foo: 'bar' };
const transformed = pickOriginal(createObj(original), original);
console.log(transformed);
// { foo: 'bar' }
``
| Name |
| ------------ |
| Titanism |
MIT © Titanism
##
[npm]: https://www.npmjs.com/