mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
mergeWith: stack passed to customizer should always be defined (#4244)
Summary: If the first values encountered in the `object` in mergeWith are not objects, `stack` is undefined when passed to the `customizer`. Once the first object-ish value is encountered, `stack` gets initialized, and all further calls to `customizer` include a defined `stack`. This PR makes `stack` always defined, even before the first object-ish value is encountered.
This commit is contained in:
committed by
John-David Dalton
parent
7084300d34
commit
0b8592a35c
Reference in New Issue
Block a user