Clarify how undefined source values are handled in _.merge. [ci skip]

This commit is contained in:
John-David Dalton
2016-02-15 10:22:25 -08:00
parent dc2fc9428d
commit 3846348f8a

View File

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