Function JSObject.callAsFunction

Calls this Object as a Function.

JSValue callAsFunction (
  JSObject target,
  const(JSValue[]) params...
);

Parameters

NameDescription
targetA reference to the Object that has this function
paramsThe parameter values to pass to the function