query-string
Advanced tools
Comparing version
@@ -79,3 +79,3 @@ 'use strict'; | ||
val.slice().sort().forEach(function (val2) { | ||
val.slice().forEach(function (val2) { | ||
if (val2 === undefined) { | ||
@@ -82,0 +82,0 @@ return; |
{ | ||
"name": "query-string", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "Parse and stringify URL query strings", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -90,5 +90,15 @@ # query-string [](https://travis-ci.org/sindresorhus/query-string) | ||
However, there is support for multiple instances of the same key: | ||
```js | ||
queryString.parse('likes=cake&name=bob&likes=icecream'); | ||
//=> {likes: ['cake', 'icecream'], name: 'bob'} | ||
queryString.stringify({color: ['taupe', 'chartreuse'], id: '515'}); | ||
//=> 'color=chartreuse&color=taupe&id=515' | ||
``` | ||
## License | ||
MIT © [Sindre Sorhus](https://sindresorhus.com) |
6669
4.51%104
10.64%