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 bc90696 commit f326a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -169,7 +169,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 f326a80

Please sign in to comment.