Function.prototype.call

Calls a method of an object, substituting another object for the current object.

Syntax

call(thisArg, ...args)

Parameters

Return value

The result of calling the method.

Examples

let pow = (x, e) => x ** e
pow.call(null, 2, 16)
65536