Conversation
ljharb
left a comment
There was a problem hiding this comment.
Hmm - "blank" isn't really a universal definition. Perhaps this would be better as a generic skip option? It would take a function, be passed key and value, and return true to skip. That way it could also subsume the skipNulls option (it would throw if both were passed), and then you could define your own definition for what to skip.
We'd want to add the same option to both parse and stringify.
dist/qs.js
Outdated
| prefix, | ||
| generateArrayPrefix, | ||
| strictNullHandling, | ||
| skipBlanks, |
There was a problem hiding this comment.
All changes made in this autogenerated file are lost; you'll need to change the files in lib instead.
|
It makes sense and more suitable. I will give it a try asap |
|
@douglira have you had any time to update this PR? |
521a4df to
01d7117
Compare
Codecov Report
@@ Coverage Diff @@
## master #307 +/- ##
=======================================
Coverage 99.85% 99.85%
=======================================
Files 8 8
Lines 1336 1347 +11
Branches 164 167 +3
=======================================
+ Hits 1334 1345 +11
Misses 2 2
Continue to review full report at Codecov.
|
No description provided.