Deep Merge Two or More JavaScript Objects with Conflict Resolution
Write a deepMerge(...objects) function that combines multiple objects into one by recursively merging nested structures. When two objects share a key with object values, their children should be merged (not overridden). For scalar or array values, the last source wins. Handle edge cases like merging arrays vs. plain objects, null values, and Date or RegExp instances that should not be recursively merged. This is a step up from Object.assign() and a prerequisite to understanding state merging in Redux.