callAsFunction(this:arguments:)

Call this function with given arguments and binding given this as context.

JSFunction.swift:21
@discardableResult func callAsFunction(this: JSObject, arguments: [ConvertibleToJSValue]) -> JSValue

Parameters

this

The value to be passed as the this parameter to this function.

arguments

Arguments to be passed to this function.

Returns

The result of this call.