mapmerge
v0.0.2
Published
Merge mulitple objects using a key map
Downloads
1
Readme
Usage
mapMerge
var mapMerge = require('../').mapMerge;
var map = {
Date: 'date',
d_ate: 'date'
};
mapMerge(map, {
d_ate: '11',
test: 22
});
/*
* Output
*
* {
* date: '11',
* test: 22
* }
*/
mapMergeStrict
var mapMergeStrict = require('../').mapMergeStrict;
var map = {
Date: 'date',
d_ate: 'date'
};
mapMergeStrict(map, {
d_ate: '11',
test: 22
});
/*
* Output
*
* {
* date: '11'
* }
*/