Function.prototype.apply.apply-setTimeout

the code in Jasmine, the SetTimeout method in this Function.prototype.apply.apply

if (queueableFn.timeout) {
    timeoutId = Function.prototype.apply.apply(self.timeout.setTimeout, [j$.getGlobal(), [function() {
      var error = new Error("Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.");
      onException(error);
      next();
    }, queueableFn.timeout()]]);
}

Does anyone know the meaning of this passage?

Mar.14,2021
Menu