lib/templateUtils.js
function(template, delta) {
    assert.equal(typeof(template), 'object', "'template' is not an object");
    assert.equal(typeof(delta), 'object', "'delta' is not an object");

    var result = myUtils.deepClone(template);
    Object.keys(delta).forEach(function(x) {
        result[x] = myUtils.deepClone(delta[x]);
    });
    return result;
}
function(template, delta) {
    assert.equal(typeof(template), 'object', "'template' is not an object");
    assert.equal(typeof(delta), 'object', "'delta' is not an object");

    var result = myUtils.deepClone(template);
    Object.keys(delta).forEach(function(x) {
        result[x] = myUtils.deepClone(delta[x]);
    });
    return result;
}
function ( template , delta ) { assert . equal ( typeof ( template ) , 'object' , "'template' is not an object" ) ; assert . equal ( typeof ( delta ) , 'object' , "'delta' is not an object" ) ; var result = myUtils . deepClone ( template ) ; Object . keys ( delta ) . forEach ( function ( x ) { result [ x ] = myUtils . deepClone ( delta [ x ] ) ; } ) ; return result ; }
Merge two environments of matching components.

@param {Object} template
@param {Object} delta
@return {Object} result
Merge two environments of matching components .