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

Resolve an issue when null is in an array #18

Merged
merged 2 commits into from
Sep 27, 2016

Conversation

kodypeterson
Copy link
Contributor

So, I found that the typeof null is an object. So, when null exists in an array it wants to attempt a merge on it. Well, then Object.keys(null) bombs out. This resolves the issue 😄

@kodypeterson
Copy link
Contributor Author

@KyleAMathews - Any luck on looking at getting this merged in?

@KyleAMathews
Copy link
Collaborator

@kodypeterson 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

This change makes sense to me. My paranoia kind of wants another test to make sure null values work fine when being merged with non-null values at the same index in the other array, but otherwise this looks good to me.

@TehShrike TehShrike merged commit 689504d into TehShrike:master Sep 27, 2016
TehShrike added a commit that referenced this pull request Sep 27, 2016
- Extra test for #18
- Some bugs similar to #23 and #31 where regexes and dates wouldn't be copied correctly across arrays
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants