Problem 2693 · Medium

Call Function with Custom Context

Add a callPolyfill method to every function. It takes an object and any further arguments, then runs the function with that object as this and those arguments as parameters, without using the built-in Function.call.

Open the interactive visualisation