Skip to content

del over nonexistent path will create every step except the last that purports to delete  #53

@nunodelisboa

Description

@nunodelisboa

An example is this:

import immutable from 'object-path-immutable';

const obj = { foo: { bar: true } };
const newObj = immutable.del(obj, 'foo.rab.oof'); 

What one gets is

{ foo: { bar: true, rab: { } }

The expected behavior is

{ foo: { bar: true } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions