mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Make _.merge assign null values. [closes #151]
Former-commit-id: 5a839996db9475182d5957d2f8cb4b3c265b0d9f
This commit is contained in:
@@ -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> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1758 "View in source") [Ⓣ][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."
|
||||
Reference in New Issue
Block a user