mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Clarify _.merge description. [ci skip]
Mention behaviour difference between merging plain objects and objects with non-Object prototypes. As discussed in #1455.
This commit is contained in:
committed by
John-David Dalton
parent
aa303df387
commit
8cbb8befd4
10
lodash.js
10
lodash.js
@@ -9708,9 +9708,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Recursively merges own enumerable properties of the source object(s) into the
|
* Recursively merges own and inherited enumerable properties of source
|
||||||
* destination object, for source properties which don't resolve to `undefined`.
|
* objects into the destination object, skipping source properties that resolve
|
||||||
* Subsequent sources overwrite property assignments of previous sources.
|
* 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.
|
||||||
|
*
|
||||||
|
* **Note:** This method mutates `object`.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
|||||||
Reference in New Issue
Block a user