How to use the extend/utils/augment function in extend

To help you get started, we’ve selected a few extend examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ractivejs / ractive / src / config / configuration.js View on Github external
function todo_data( Parent, Child, value ){

	if ( value ) {
		if ( Child.data ) {
			augment( Child.data, value );
		} else {
			Child.data = value;
		}
	}

	if ( Parent.data ) {

		let value = Parent.data;

		if ( value ) {
			if ( Child.data ) {
				augment( Child.data, value );
			} else {
				Child.data = value;
			}
		}
github ractivejs / ractive / src / config / configuration.js View on Github external
if ( value ) {
		if ( Child.data ) {
			augment( Child.data, value );
		} else {
			Child.data = value;
		}
	}

	if ( Parent.data ) {

		let value = Parent.data;

		if ( value ) {
			if ( Child.data ) {
				augment( Child.data, value );
			} else {
				Child.data = value;
			}
		}
	}

}

extend

Port of jQuery.extend for node.js and the browser

MIT
Latest version published 6 years ago

Package Health Score

74 / 100
Full package analysis