underscore.deepextend
v0.1.1
Published
Underscore helper for deep extending objects
Downloads
1,023
Maintainers
Readme
underscore.deepextend
This library is an extension for Underscore which allows extending objects and functions.
Features
- Deep extend objects and functions.
Dependencies
- underscore.js (>= 1.5.0)
- underscore.catenate (>= 0.1.1)
Node
var _ = require('underscore');
_.mixin(require('underscore.deepextend'));
Examples
var object = {foo: {bar: 123}};
object = _.deepExtend(object, {foo: {baz: 321}});
object.foo.bar == 123 // true
object.foo.baz == 321 // true
License
Copyright (c) 2013-2014 Mateus Maso. Released under an MIT license.