envy.js
function deepCopy(destination, source) {
    Object.keys(source).forEach(function (property) {
        if (destination[property] && isObject(destination[property])) {
            deepCopy(destination[property], source[property]);
        } else {
            destination[property] = source[property];
        }
    });
}
function deepCopy(destination, source) {
    Object.keys(source).forEach(function (property) {
        if (destination[property] && isObject(destination[property])) {
            deepCopy(destination[property], source[property]);
        } else {
            destination[property] = source[property];
        }
    });
}
function deepCopy ( destination , source ) { Object . keys ( source ) . forEach ( function ( property ) { if ( destination [ property ] && isObject ( destination [ property ] ) ) { deepCopy ( destination [ property ] , source [ property ] ) ; } else { destination [ property ] = source [ property ] ; } } ) ; }
Deep copies the properties of the source object into the destination
object.
Deep copies the properties of the source object into the destination object .