mextend

0.1.1 • Public • Published

mextend

mextend means microextend means MICRO EXTEND for keepin it real basic. If you need complex extends, don't use.

Getting Started

npm install mextend

mextend is meant to be consumed in a CommonJS, Browserify environment:

var mextend = require('mextend');

var defaults = {
	'a' : 0,
	'b' : {},
	'c' : function(){ }
}

var options = {
	'a' : 0,
	'b' : {
		'super' : 'duper'
	},
	'c' : function(){ 
		console.log('really cool');
	}
}

console.log(mextend(defaults, options));

# Output
{
	'a' : 0,
	'b' : {
		'super' : 'duper'
	},
	'c' : function(){ 
		console.log('really cool');
	}
}

/mextend/

    Package Sidebar

    Install

    npm i mextend

    Weekly Downloads

    2

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • amongiants