Advice multiple objects
Closed this issue · 2 comments
agomezcafeto commented
It is possible to advise multiple objects ? for example:
meld.after([objects], [methods], function () { ...
briancavalier commented
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!
agomezcafeto commented
thanks, yes I did that