-
Notifications
You must be signed in to change notification settings - Fork 301
Fix null in array #375
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
Fix null in array #375
Conversation
@@ -243,7 +243,7 @@ export const arraySerializer = function arraySerializer(xs, serializer) { | |||
if (Array.isArray(first) && !first.type) | |||
return '{' + xs.map(x => arraySerializer(x, serializer)).join(',') + '}' | |||
|
|||
return '{' + xs.map(x => | |||
return '{' + xs.map(x => x == null ? 'null' : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this library only use strict equality comparisons?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this isn't going in.. I've already got a fix for this in the works, so closing the PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You use whatever equality comparison is needed, this fix works great
Something is already on the way, but thanks anyway ;) |
Ok could have said something like 5 days ago so I don't need to fix your library for you, thanks |
I haven't asked you to, and I have other things to do than responding to ungrateful people I don't know on the internet. The way you've been conducting yourself previously doesn't really help either. |
fix #371