All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.mv.Extend.js Maven / Gradle / Ivy

The newest version!
define(function(){

//http://stackoverflow.com/questions/12317003/something-like-jquery-extend-but-standalone

	function extend(target, source) {
		target = target || {};
		for (var prop in source) {
			if (typeof source[prop] === 'object')
				target[prop] = extend(target[prop], source[prop]);
			else
				target[prop] = source[prop];
		}
		return target;
	}

	return extend;

});




© 2015 - 2025 Weber Informatics LLC | Privacy Policy