Based on mout's implementation of merge Usage var merge = require('{%= name %}'); merge({a: {b: {c: 'c', d: 'd'}}}, {a: {b: {e: 'e', f: 'f'}}}); //=> { a: { b: { c: 'c', d: 'd', e: 'e', f: 'f' } } }