How can I dynamically add a method (method? subfunction?) to a function? I want something like the below code to work:
function myobj(params){ this.addFunc