Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mergeAndConcat function #657

Open
silveltman opened this issue Apr 28, 2024 · 1 comment
Open

Add mergeAndConcat function #657

silveltman opened this issue Apr 28, 2024 · 1 comment
Labels
feature request New feature or request

Comments

@silveltman
Copy link

silveltman commented Apr 28, 2024

similar to mergeDeep but concatting arrays with the same key, instead of overwriting.

This one is awesome, with good ts support: https://github.com/mesqueeb/merge-anything

edit: I think mergeAndConcat (or mergeConcat) would be a better name, rather then mergeDeepConcat for example. Reason being that in order to merge AND concat the value already is sure to be a combination of object and array, therefore must be deeper then one layer

@silveltman silveltman changed the title Add mergeDeepConcat function Add mergeAndConcat function Apr 28, 2024
@cjquines cjquines added the feature request New feature or request label Apr 28, 2024
@cjquines
Copy link
Collaborator

my proposed api here would be to reuse mergeDeep with an options param, like deno's deepMerge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants