This method is like defaults except that it recursively assigns default properties.
defaults
Note: This method mutates object.
object
The destination object.
Rest
Returns object.
5.21.0
[[defaults]]
defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } })// => { 'a': { 'b': 2, 'c': 3 } } Copy
defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } })// => { 'a': { 'b': 2, 'c': 3 } }
This method is like
defaults
except that it recursively assigns default properties.Note: This method mutates
object
.