Call f1 with the same params as f2 before calling f2
Sample usage
constlogRender = ()=>console.log('render') obj.render = wrapThisFunction(logRender, obj.beforeRender) // now calling obj.beforeRender(), will log 'render' and then call obj.beforeRender()
Call f1 with the same params as f2 before calling f2 Sample usage