Merge two values.
If both values are objects, then combines them in the properties level.
Otherwise, returns the latter value if it's not null, otherwise the former value.
return (y ?? x)
Value X to merge
Value Y to merge
Merged value
Merge two values.
If both values are objects, then combines them in the properties level.
Otherwise, returns the latter value if it's not null, otherwise the former value.
return (y ?? x)