Skip to content

Why are null and undefined variables removed from params #1139

@Billy-

Description

@Billy-

if (val === null || typeof val === 'undefined') {

I would expect

let a
let b
axios({ params: { a, b })

To construct ?a=&b=

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions