Clarify _.merge documentation. [closes #143] [ci skip]

Former-commit-id: efcec739bf2682da9b3dde27a43ff3b76aa4d6e8
This commit is contained in:
John-David Dalton
2012-12-18 21:35:43 -08:00
parent bfea443e55
commit 69dfa1a175
2 changed files with 4 additions and 4 deletions

View File

@@ -2589,7 +2589,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#L1743 "View in source") [&#x24C9;][1]
Merges enumerable properties of the source object(s) 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 `null`/`undefined`, into the `destination` object. Subsequent sources will overwrite propery assignments of previous sources.
#### Arguments
1. `object` *(Object)*: The destination object.

View File

@@ -1710,9 +1710,9 @@
}
/**
* Merges enumerable properties of the source object(s) 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 `null`/`undefined`, into the `destination` object. Subsequent
* sources will overwrite propery assignments of previous sources.
*
* @static
* @memberOf _