[SOLVED] How to apply a Mongo modifier to a local object?

Suppose we have

var o = {a:1}
var modifier = {$set: {a:2}}

Is there some Meteor API to apply the modifier directly to o?

I found mupdate on npm, which does the job to some degree: it doesn’t have all the possible operators.

Yep, that’s the one LocalCollection._modify

@nathan_muir That was what I needed. Thanks!