In this code I created a function called someFunction. Then I modified Function.prototype.apply and call methods. So instead of my function code is working I am running my i
You could iterate over the global scope and replace any objects of function type you find which aren't "yours".