The semantic-merge module. It merges stuff. Semantically.
Usage:
var merge = require('semantic-merge')
, source = { prop: 'I am in the source!' }
, target = { prop: 'I am in the target, and will be overwritten :(' }
, result
result = merge(source).into(target)
// Note that result is the same object as target. To perform a clone, do:
result = merge(source).and(target).into({})
- Source:
- Tutorials:
Classes
- Merger
- Create a new merger