I need to decorate a 3rd party function that I can't modify so I will need to decorate it in any way. I found that in Prototype there is something to do it easily [1].
Is there any alternative to that in jQuery or in plain JavaScript?
[1] http://api.prototypejs.org/language/Function/prototype/wrap/
What about your scenario requires a library? It seems that with native javascript, you could simply:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With