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

Array format 'comma' not working like shown in the example #299

Closed
zulqarnain-26 opened this issue Dec 30, 2020 · 0 comments
Closed

Array format 'comma' not working like shown in the example #299

zulqarnain-26 opened this issue Dec 30, 2020 · 0 comments

Comments

@zulqarnain-26
Copy link

zulqarnain-26 commented Dec 30, 2020

This example is officially mentioned as a feature but it is not working like it should be:

queryString.parse('foo=1,2,3', {arrayFormat: 'comma'});
//=> {foo: ['1', '2', '3']} mentioned (expected output)
//=> {foo: "1,2,3"} (actual output)

Edit: i was using old version. Everything is working fine with new version

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

No branches or pull requests

1 participant