src/angular-spring-data-rest-utils.js
function deepExtend(destination) {
    angular.forEach(arguments, function (obj) {
        if (obj !== destination) {
            angular.forEach(obj, function (value, key) {
                if (destination[key] && destination[key].constructor && destination[key].constructor === Object) {
                    deepExtend(destination[key], value);
                } else {
                    destination[key] = value;
                }
            });
        }
    });
    return angular.copy(destination);
}
function deepExtend(destination) {
    angular.forEach(arguments, function (obj) {
        if (obj !== destination) {
            angular.forEach(obj, function (value, key) {
                if (destination[key] && destination[key].constructor && destination[key].constructor === Object) {
                    deepExtend(destination[key], value);
                } else {
                    destination[key] = value;
                }
            });
        }
    });
    return angular.copy(destination);
}
function deepExtend ( destination ) { angular . forEach ( arguments , function ( obj ) { if ( obj !== destination ) { angular . forEach ( obj , function ( value , key ) { if ( destination [ key ] && destination [ key ] . constructor && destination [ key ] . constructor === Object ) { deepExtend ( destination [ key ] , value ) ; } else { destination [ key ] = value ; } } ) ; } } ) ; return angular . copy ( destination ) ; }
Makes a deep extend of the given destination object and the source objects.

@param {object} destination the destination object
@returns {object} a copy of the extended destination object
Makes a deep extend of the given destination object and the source objects .