Skip to content

Set/change value of property? #81

@barrychapman

Description

@barrychapman

Is there a way to set/modify an existing value with this?

var tee = {
     a: "hello",
     b: {
         b1: "goodbye",
         b2: "so long",
         b3: "adios"
     }
}

dot.update("tee.b.b2", tee, "good riddance");

// yield 
{
     a: "hello",
     b: {
         b1: "goodbye",
         b2: "good riddance",
         b3: "adios"
     }
}

Is this possible, or something like it?

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