Skip to Content
Open SourceHydraLibraries@exodus/fusion-merge

@exodus/fusion-merge

Custom merge algorithm for fusion.

This doesn’t create a clone for mismatching entries, it reuses existing ones where possible. Unlike merge-deep, e.g. arrays are not merged, this replaces arrays.

This works only on JSON-compatible plain objects. Other objects will be replaced, not merged.

Empty object keys replace existing object keys:

merge({ foo: { bar: 0 } }, { foo: {} });
// => { foo: {} }

Start building

XO

Request Demo

Schedule a call with our team

Select a product
Arrow right

Start building
Grateful

Contact Us

We're here to help