Skip to content

Transform properties #117

@bartbutenaers

Description

@bartbutenaers

Dear,
Thanks for sharing this useful library!

I was wondering if it is somehow possible to transform object properties (from original value into a new value).

Something like this:

objectPath.set(obj, "a.j.0.f", function(originalValue) {
   var newValue = originalValue + 2;
   return newValue;
});

Kind regards,
Bart

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