mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Clarify how undefined source values are handled in _.merge. [ci skip]
This commit is contained in:
12
lodash.js
12
lodash.js
@@ -11571,12 +11571,12 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 overridden by assignment. Source objects
|
||||
* are applied from left to right. Subsequent sources overwrite property
|
||||
* assignments of previous sources.
|
||||
* Recursively merges own and inherited enumerable properties of source objects
|
||||
* into the destination object. Source properties that resolve to `undefined`
|
||||
* are skipped if a destination value exists. Array and plain object properties
|
||||
* are merged recursively. Other objects and value types are overridden by
|
||||
* assignment. Source objects are applied from left to right. Subsequent
|
||||
* sources overwrite property assignments of previous sources.
|
||||
*
|
||||
* **Note:** This method mutates `object`.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user