Skip to content

Commit

Permalink
[Docs] Clarify the need for "arrayLimit" option
Browse files Browse the repository at this point in the history
  • Loading branch information
Jokero authored and ljharb committed Jan 16, 2019
1 parent fafc2d2 commit 107c302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ assert.deepEqual(withIndexedEmptyString, { a: ['b', '', 'c'] });
```

**qs** will also limit specifying indices in an array to a maximum index of `20`. Any array members with an index of greater than `20` will
instead be converted to an object with the index as the key:
instead be converted to an object with the index as the key. This is needed to handle cases when someone sent, for example, `a[999999999]` and it will take significant time to iterate over this huge array.

```javascript
var withMaxIndex = qs.parse('a[100]=b');
Expand Down

0 comments on commit 107c302

Please sign in to comment.