Merge objects & other types recursively. A simple & small integration.
Maybe this is by design, but I was surprised to learn that this: ``` import { merge } from "merge-anything" const defaultTheme = {} const theme = undefined merge(defaultTheme, theme) ``` Returns `undefined`. Is this expected, maybe it is, but I was kind of expecting it to return `{}`. Am I right? I would hate to have to handle this scenario like this everytime: ``` merge(defaultTheme, theme || {}) ```
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be still under discussion. The issue was opened by snicol21 and has received 3 comments.