Calling a Function Using function.apply

Function.prototype.apply()

The apply() method calls the specified function with a given this value, and arguments provided as an array (or an array-like object).


Source: Mozilla, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply
Creative Commons License This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.