Skip to content

Commit 5e70a6a

Browse files
Coobahaljharb
authored andcommitted
[Docs] Fix examples for empty keys parsing
1 parent be297d3 commit 5e70a6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -306,14 +306,14 @@ By default, empty keys are omitted after parsing:
306306

307307
```javascript
308308
var obj = qs.parse("=1&=2");
309-
assert.deepEqual(withNull, {});
309+
assert.deepEqual(obj, {});
310310
```
311311

312312
It is possible to include empty keys by using `allowEmptyKeys` flag:
313313

314314
```javascript
315315
var obj = qs.parse("=1&=2", { allowEmptyKeys: true });
316-
assert.deepEqual(withNull, { "": ["1","2"] });
316+
assert.deepEqual(obj, { "": ["1","2"] });
317317
```
318318

319319
### Stringifying

0 commit comments

Comments
 (0)