Add doc note to associate _.merge with _.assign. [ci skip]

This commit is contained in:
John-David Dalton
2016-02-29 08:17:10 -08:00
parent c10146e2f0
commit 2c5f026d3c

View File

@@ -11671,12 +11671,13 @@
} }
/** /**
* Recursively merges own and inherited enumerable properties of source objects * This method is like `_.assign` except that it recursively merges own and
* into the destination object. Source properties that resolve to `undefined` * inherited enumerable properties of source objects into the destination
* are skipped if a destination value exists. Array and plain object properties * object. Source properties that resolve to `undefined` are skipped if a
* are merged recursively. Other objects and value types are overridden by * destination value exists. Array and plain object properties are merged
* assignment. Source objects are applied from left to right. Subsequent * recursively.Other objects and value types are overridden by assignment.
* sources overwrite property assignments of previous sources. * Source objects are applied from left to right. Subsequent sources
* overwrite property assignments of previous sources.
* *
* **Note:** This method mutates `object`. * **Note:** This method mutates `object`.
* *