4 ms·
You can have multiple values under the same search parameter. For example, ?a=b&a=c&a=d, which would be the array [b, c, d]. Including the index key seems redun
by frosted-flakes 4y ago
You can have multiple values under the same search parameter. For example, ?a=b&a=c&a=d, which would be the array [b, c, d]. Including the index key seems redundant.
The native URLSearchParams browser interface even supports this with the getAll method.
https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/getAll https://developer.mozilla.org/en-US/docs/Web/API/URLSearchPa...
- jcuenod 4y agoGreat point! Added to my TODOs