Skip to content

Set value (object) to null (force) #97

@DenniLa2

Description

@DenniLa2

Hello!
Thanks for You work and 'object-path'!

My object = {a: null};
If I run objectPath.set(object, 'a.b', 'c') fire the error "Cannot set property 'b' of null".
Pls, add fourth parameter to .set(), isForce. If true - replace null (primitive value) to object path.

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