src/sap.ui.core/src/sap/ui/core/format/DateFormat.js
function mergeWithoutOverwrite(object1, object2) {
		if (object1 === object2) {
			return object1;
		}

		var oMergedObject = {};

		// Clone object1
		Object.keys(object1).forEach(function(sKey) {
			oMergedObject[sKey] = object1[sKey];
		});

		// merge
		Object.keys(object2).forEach(function(sKey) {
			if (!oMergedObject.hasOwnProperty(sKey)) {
				oMergedObject[sKey] = object2[sKey];
			}
		});

		return oMergedObject;
	}
function mergeWithoutOverwrite(object1, object2) {
		if (object1 === object2) {
			return object1;
		}

		var oMergedObject = {};

		// Clone object1
		Object.keys(object1).forEach(function(sKey) {
			oMergedObject[sKey] = object1[sKey];
		});

		// merge
		Object.keys(object2).forEach(function(sKey) {
			if (!oMergedObject.hasOwnProperty(sKey)) {
				oMergedObject[sKey] = object2[sKey];
			}
		});

		return oMergedObject;
	}
function mergeWithoutOverwrite ( object1 , object2 ) { if ( object1 === object2 ) { return object1 ; } var oMergedObject = { } ; // Clone object1 Object . keys ( object1 ) . forEach ( function ( sKey ) { oMergedObject [ sKey ] = object1 [ sKey ] ; } ) ; // merge Object . keys ( object2 ) . forEach ( function ( sKey ) { if ( ! oMergedObject . hasOwnProperty ( sKey ) ) { oMergedObject [ sKey ] = object2 [ sKey ] ; } } ) ; return oMergedObject ; }
Copy the properties of object2 into object1 without overwriting the existing properties in object1
Copy the properties of object2 into object1 without overwriting the existing properties in object1