cujojs/meld

Advice multiple objects

Closed this issue · 2 comments

It is possible to advise multiple objects ? for example:

meld.after([objects], [methods], function () { ...

Hi @agomezcafeto. There's no builtin API for that, but you do it easily by mapping an array of objects.

const removers = arrayOfObjects.map(object =>
  meld.after(object, [methods], function () { ... }))

Hope that helps. Cheers!

thanks, yes I did that