Hi!
Maybe I'm mistaken, but I think when duplicates
is set to "last"
, it should not apply to arrays without indices:
qs.parse("a=1&a=2&b[]=1&b[]=2", {duplicates: "last"})
results in
{ a: '2', b: [ '2' ] }
Where a
is correct, but b
was not what I expected.