From 69dfa1a17577b4ab7d8ae7f34a318021944630b3 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 18 Dec 2012 21:35:43 -0800 Subject: [PATCH] Clarify `_.merge` documentation. [closes #143] [ci skip] Former-commit-id: efcec739bf2682da9b3dde27a43ff3b76aa4d6e8 --- doc/README.md | 2 +- lodash.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/README.md b/doc/README.md index a9d81ce54..43a3e5ce4 100644 --- a/doc/README.md +++ b/doc/README.md @@ -2589,7 +2589,7 @@ _.keys({ 'one': 1, 'two': 2, 'three': 3 }); ### `_.merge(object [, source1, source2, ...])` # [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1743 "View in source") [Ⓣ][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. diff --git a/lodash.js b/lodash.js index 393d3937b..4f28eb93c 100644 --- a/lodash.js +++ b/lodash.js @@ -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 _