We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Invoke a function with specified this-object, and arguments provided as an array.
Similar: call, apply.
function apply(x, ths, args) // x: a function // ths: this object to invoke with // args: arguments array
const xasyncfn = require('extra-async-function'); var array = [1]; xasyncfn.apply(Array.prototype.push, array, [2, 3, 4]); // push(2, 3, 4) array; // → [1, 2, 3, 4] var array = [1, 2, 3, 4]; xasyncfn.apply(Array.prototype.splice, array, [1, 2]); // splice(1, 2) array; // → [1, 4]