Clarify the order in which sources are applied in docs of _.assign, _.defaults, and _.merge. [ci skip]

This commit is contained in:
Tim Ruffles
2015-09-24 10:22:41 +01:00
committed by John-David Dalton
parent 5f42a3d4db
commit dd75deb27f

View File

@@ -9218,7 +9218,8 @@
/** /**
* Assigns own enumerable properties of source objects to the destination * 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 * **Note:** This method mutates `object` and is based on
* [`Object.assign`](http://ecma-international.org/ecma-262/6.0/#sec-object.assign). * [`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 * Assigns own and inherited enumerable properties of source objects to the
* destination object for all destination properties that resolve to `undefined`. * 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`. * **Note:** This method mutates `object`.
* *
@@ -9907,8 +9909,9 @@
* Recursively merges own and inherited enumerable properties of source * Recursively merges own and inherited enumerable properties of source
* objects into the destination object, skipping source properties that resolve * objects into the destination object, skipping source properties that resolve
* to `undefined`. Array and plain object properties are merged recursively. * to `undefined`. Array and plain object properties are merged recursively.
* Other objects and value types are overriden by assignment. Subsequent * Other objects and value types are overriden by assignment. Source objects
* sources overwrite property assignments of previous sources. * are applied from left to right. Subsequent sources overwrite property
* assignments of previous sources.
* *
* **Note:** This method mutates `object`. * **Note:** This method mutates `object`.
* *