2.0.1 • Published 1 year ago

@exodus/fusion-merge v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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: {} }
2.0.1

1 year ago

2.0.0

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago