Skip to content

[Question] Is there a built in method like "updateOrCreate" #941

@someramsey

Description

@someramsey

I have been using lokijs for a while now, I couldn't find a built in way to find an entry, update it if it exists or otherwise create it. Yes this is possible by combining multiple calls but it would be nice if there was a function specifically made for that

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