Skip to content

Setting value to undefined removes property #46

Open
@danrot

Description

@danrot

I am setting a value of undefined on an object using your library, and this removes the property completely. I would like to keep the property and really set its property to undefined.

I also put an example here:

const a = {value: 5};
jsonpointer.set(a, 'value', undefined);
console.log(a); // outputs something like {}, but I would like to have {value: undefined}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions