Function.prototype.apply() - JavaScript | MDN

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