this might sound strange but I’d like to use mongo style operations on regular objects. Specifically, the update operators like $set, $push, etc.
Something like
sourceObject = {foo: {bar: false}}
mUpdate(sourceObject, {$set {{'foo.bar': 'baz'}})
// sourceObject is now {foo: {bar: 'baz'}}
Is there an easy way to accomplish this?