From dd75deb27f458122172a2a94a3978fd0be5575b1 Mon Sep 17 00:00:00 2001 From: Tim Ruffles Date: Thu, 24 Sep 2015 10:22:41 +0100 Subject: [PATCH] Clarify the order in which sources are applied in docs of `_.assign`, `_.defaults`, and `_.merge`. [ci skip] --- lodash.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lodash.js b/lodash.js index f9e2520ba..0cfc0f435 100644 --- a/lodash.js +++ b/lodash.js @@ -9218,7 +9218,8 @@ /** * Assigns own enumerable properties of source objects to the destination - * object. Subsequent sources overwrite property assignments of previous sources. + * object. Source objects are applied from left to right. Subsequent sources + * overwrite property assignments of previous sources. * * **Note:** This method mutates `object` and is based on * [`Object.assign`](http://ecma-international.org/ecma-262/6.0/#sec-object.assign). @@ -9331,7 +9332,8 @@ /** * Assigns own and inherited enumerable properties of source objects to the * destination object for all destination properties that resolve to `undefined`. - * Once a property is set, additional values of the same property are ignored. + * Source objects are applied from left to right. Once a property is set, + * additional values of the same property are ignored. * * **Note:** This method mutates `object`. * @@ -9907,8 +9909,9 @@ * Recursively merges own and inherited enumerable properties of source * objects into the destination object, skipping source properties that resolve * to `undefined`. Array and plain object properties are merged recursively. - * Other objects and value types are overriden by assignment. Subsequent - * sources overwrite property assignments of previous sources. + * Other objects and value types are overriden by assignment. Source objects + * are applied from left to right. Subsequent sources overwrite property + * assignments of previous sources. * * **Note:** This method mutates `object`. *