Merge all objects
merge-all-objects
is a function that allows you to merge thousands of objects with recursion, and with exclusions as well
Installation
# For npm npm install --save merge-all-objects # For yarn yarn add merge-all-objects
Usage
; // First object; // Second object; ; // accept unlimited items!
🎁 Options
the options will always be added at the end of the one between the parameters
Merge obj1, obj2, obj3, obj4, obj5, /* always in the end the options */ ,;
Removed (keys, values)
The option to delete objects by their keys or values is also available, as follows
Mergeobj1, obj2, ;
Excluded (keys, values)
- The
merge-all-objects
allows to exclude some object keys for recursion ! - You will be assigned the last value found that matches your key !
// To add the keys to be excluded always add them at the end in theMergeobj1, obj2, ;
⭐ Support for
merge-all-objects
is an open source project licensed by MIT. You can grow thanks to the sponsors and the support of the amazing sponsors. If you want to join them, contact me here.
🎩 Stay in touch
- Github @yonicalsin
- Twitter @yonicalsin
- Instagram @yoni_calsin
- Medium @yonicalsin
Contributors
Thanks to the wonderful people who collaborate with me !
📜 License
merge-all-objects
under License MIT.