merge-anything

Merge objects & other types recursively. A simple & small integration.

MIT License

Downloads
2.3M
Stars
232
Committers
6
merge-anything - All new TypeScript support!

Published by mesqueeb over 4 years ago

Better TypeScript support 🦄

I have greatly improve the TypeScript support. Your merged values will now carry over the actually merged interfaces:

v3.0 breaking changes

  • only named exports
// before:
import merge from 'merge-anything'

// now:
import { merge } from 'merge-anything'
  • now you can only pass objects into merge(), as opposed to arrays and other types.

  • custom compare & replace functions have slight changes:

Please see the new documentation on compare functions. Compare functions are now only triggered when a value is actually overwritten, not for the values on the first object passed that are never overwritten.

merge-anything - Support for (non- &) enumerable props & symbols 🦄

Published by mesqueeb over 5 years ago

The library now completely supports:

  • (non- &) enumerable props
  • (non- &) enumerable symbols

enjoy!! 🎉

--merge-anything was made with ♥ by Luca Ban.If this library helped you in any way you can support me by buying me a cup of coffee. ☕️

merge-anything - New extend feature! 🌊

Published by mesqueeb about 6 years ago

Now you can also extend the logic used to overwrite values during merging!
See all about it in the updated documentation!

Enjoy!!! 🌞

merge-anything - Merge anything released! 🏄🏼‍♂️

Published by mesqueeb about 6 years ago

Enjoy!! 🏝