Skip to content

Commit 1d5492c

Browse files
committed
fix: use array.isarray check for performance
1 parent e2d5762 commit 1d5492c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/stringify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function stringify(input) {
4040
result += "&";
4141
}
4242

43-
if (value.pop) {
43+
if (Array.isArray(value)) {
4444
const valueLength = value.length;
4545
for (let j = 0; j < valueLength; j++) {
4646
if (j) {

0 commit comments

Comments
 (0)