Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mateusmaso/underscore.deepextend
Underscore helper for deep extending objects
https://github.com/mateusmaso/underscore.deepextend
deepextend extend-objects javascript underscore
Last synced: 11 days ago
JSON representation
Underscore helper for deep extending objects
- Host: GitHub
- URL: https://github.com/mateusmaso/underscore.deepextend
- Owner: mateusmaso
- License: mit
- Created: 2014-08-13T01:53:02.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-03T01:57:01.000Z (almost 10 years ago)
- Last Synced: 2024-10-06T04:22:52.253Z (about 1 month ago)
- Topics: deepextend, extend-objects, javascript, underscore
- Language: JavaScript
- Homepage:
- Size: 141 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
underscore.deepextend [![Build Status](https://travis-ci.org/mateusmaso/underscore.deepextend.svg?branch=master)](https://travis-ci.org/mateusmaso/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
```javascript
var _ = require('underscore');
_.mixin(require('underscore.deepextend'));
```## Examples
```javascript
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.