Call f1 before calling f2 Sample usage
const logRender = ()=>console.log('render')obj.render = wrapThisFunction(logRender, obj.beforeRender)// now calling obj.beforeRender(), will log 'render' and then call obj.beforeRender() Copy
const logRender = ()=>console.log('render')obj.render = wrapThisFunction(logRender, obj.beforeRender)// now calling obj.beforeRender(), will log 'render' and then call obj.beforeRender()
Optional
Generated using TypeDoc
Call f1 before calling f2 Sample usage