Skip to content

consider returning the target object from set #6

Closed
@focusaurus

Description

@focusaurus

I migrated from a similar module called lodash-deep. It had the nice feature that the set function would return the target object, so you could make a new object from a literal and assign it like this:

var req = pathval.set({}, 'session.token.modelId', new ObjectID());

In pathval, req ends up undefined here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions