Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.