From 107c3029408c3e6fa156e52675643f03d13de379 Mon Sep 17 00:00:00 2001 From: Dmitry Kirilyuk Date: Wed, 16 Jan 2019 16:21:27 +0300 Subject: [PATCH] [Docs] Clarify the need for "arrayLimit" option --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d8119666..cb64e0f6 100644 --- a/README.md +++ b/README.md @@ -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');