https://github.com/jongacnik/mextend
mextend means microextend means MICRO EXTEND for keepin it real basic
https://github.com/jongacnik/mextend
Last synced: about 1 year ago
JSON representation
mextend means microextend means MICRO EXTEND for keepin it real basic
- Host: GitHub
- URL: https://github.com/jongacnik/mextend
- Owner: jongacnik
- Created: 2015-02-14T07:40:39.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-14T09:08:26.000Z (over 11 years ago)
- Last Synced: 2025-03-30T06:01:44.792Z (about 1 year ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](http://www.commonjs.org/), [Browserify](http://browserify.org/) 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');
}
}