generators/app/1-initializing.js
function assignDeep(dest, source) {
	if (source && source.constructor === Object) {
		var sourceBaseKeys = Object.keys(source);

		for (var i = 0; i < sourceBaseKeys.length; ++i) {
			var sourceBaseKey = sourceBaseKeys[i];
			var destinationField = dest[sourceBaseKey];
			var sourceField = source[sourceBaseKey];

			if (destinationField === undefined) {
				dest[sourceBaseKey] = sourceField;
			} else {
				// Recursive assign.
				assignDeep(destinationField, sourceField);
			}
		}
	}
}
function assignDeep(dest, source) {
	if (source && source.constructor === Object) {
		var sourceBaseKeys = Object.keys(source);

		for (var i = 0; i < sourceBaseKeys.length; ++i) {
			var sourceBaseKey = sourceBaseKeys[i];
			var destinationField = dest[sourceBaseKey];
			var sourceField = source[sourceBaseKey];

			if (destinationField === undefined) {
				dest[sourceBaseKey] = sourceField;
			} else {
				// Recursive assign.
				assignDeep(destinationField, sourceField);
			}
		}
	}
}
function assignDeep ( dest , source ) { if ( source && source . constructor === Object ) { var sourceBaseKeys = Object . keys ( source ) ; for ( var i = 0 ; i < sourceBaseKeys . length ; ++ i ) { var sourceBaseKey = sourceBaseKeys [ i ] ; var destinationField = dest [ sourceBaseKey ] ; var sourceField = source [ sourceBaseKey ] ; if ( destinationField === undefined ) { dest [ sourceBaseKey ] = sourceField ; } else { // Recursive assign. assignDeep ( destinationField , sourceField ) ; } } } }
Object.assign removes special characters that are needed for the pacakge name
and ruins the default value.
Object . assign removes special characters that are needed for the pacakge name and ruins the default value .