Skip to content
This repository was archived by the owner on Jul 30, 2018. It is now read-only.
This repository was archived by the owner on Jul 30, 2018. It is now read-only.

Improve UrlSearchParams handling of booleans #279

@jason0x43

Description

@jason0x43

Currently, UrlSearchParams#toString will include key names for parameters with falsey values.

Test: new UrlSearchParams(<Hash<any>>{ debug: false, foo: 'bar' }).toString()

Expected output: 'foo=bar'

Actual output: 'debug&foo=bar'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions