Skip to content

Duplicates set to last, should not apply to arrays without index #514

@ronnyhaase

Description

@ronnyhaase

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions