object-property-replacer
A Node.js module to replace the properties of an object by the properties of another object
Installation
Install using npm:
npm install -S object-property-replacer
Usage
Replace the properties of a destination object by the properties of a source object:
const replacer = ; const destination = 'id': 1 'email': 'jdoe@example.com' 'password': '123456'; const source = 'id': 1 'email': 'jdoe@example.com' 'role': 'user'; replacer; // destination = {'id': 1, 'email': 'jdoe@example.com', 'role': 'user'}
License
object-property-replacer
is released under the MIT license.