Skip to content

casts undefined to empty object #8

Open
@c-vetter

Description

@c-vetter

When I run omitDeep({ x: undefined }, 'y')
I expect to receive { x: undefined } (or {})
But I receive { x: {} }

The problem here is that, when I check for the existance of x afterwards, I get false positives.

Is there a good reason for casting this way?
Otherwise I'd like to change this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions