Make _.merge assign null values. [closes #151]

Former-commit-id: 5a839996db9475182d5957d2f8cb4b3c265b0d9f
This commit is contained in:
John-David Dalton
2013-01-05 00:12:33 -08:00
parent 2b23020695
commit e2c2a37221
7 changed files with 24 additions and 14 deletions

View File

@@ -1738,7 +1738,7 @@ Creates a function that is restricted to execute `func` once. Repeat calls to th
var initialize = _.once(createApplication);
initialize();
initialize();
// Application is only created once.
// `initialize` executes `createApplication` once
```
* * *
@@ -2598,7 +2598,7 @@ _.keys({ 'one': 1, 'two': 2, 'three': 3 });
### <a id="_mergeobject--source1-source2-"></a>`_.merge(object [, source1, source2, ...])`
<a href="#_mergeobject--source1-source2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1758 "View in source") [&#x24C9;][1]
Recursively merges own enumerable properties of the source object(s), that don't resolve to `null`/`undefined`, into the `destination` object. Subsequent sources will overwrite propery assignments of previous sources.
Recursively merges own enumerable properties of the source object(s), that don't resolve to `undefined`, into the `destination` object. Subsequent sources will overwrite propery assignments of previous sources.
#### Arguments
1. `object` *(Object)*: The destination object.
@@ -3184,4 +3184,4 @@ A reference to the `lodash` function.
<!-- /div -->
[1]: #Arrays "Jump back to the TOC."
[1]: #Arrays "Jump back to the TOC."