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

Added capability to specify whether arrays should be merged or replaced #20

Closed
wants to merge 1 commit into from

Conversation

nileshchavan
Copy link

This change is inspired by https://forum.jquery.com/topic/jquery-extend-modifies-but-not-replaces-array-properties-on-deep-copy

I ran into the exact same issue mentioned in the above link. I thought it would be useful to provide an option to user to choose whether arrays should be merged or replaced. Let me know what you think about it.

@KyleAMathews
Copy link
Collaborator

@nileshchavan hey! I'd love to make you a collaborator so you can merge this and other PRs and roll a new release! Please signup over at #25 and let's make this happen!

@TehShrike
Copy link
Owner

Very similar to several other pull requests - see my comment at #32 (comment) and feel free to chime in further at #14 .

@TehShrike
Copy link
Owner

Please comment on #37, another pull request with a potential solution to this issue.

@nileshchavan
Copy link
Author

@TehShrike, I haven't checked other pull requests but your solution looks good to me. I think delegating array merging is a good idea.

@TehShrike TehShrike closed this in d34ab12 Sep 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants