public interface JSFunctionFunctions extends JSObjectFunctions
hasOwnProperty| Modifier and Type | Method and Description |
|---|---|
JSObject |
apply(JSObject thisObject,
JSArray argArray)
function apply (thisObject, argArray) invoke a function as a method of an object.
|
JSObject |
call(JSObject thisObject,
JSObject args)
function call (thisObject, args) invoke a function as a method of an object
|
hasOwnProperty, isPrototypeOf, propertyIsEnumerable, toLocaleString, toString, valueOfJSObject apply(JSObject thisObject, JSArray argArray)
Example
//Apply the default Object.toString() method to an object that //overrides it with its own version of the method Object.prototype.toString().apply(o);
thisObject - The object to which the function is applied.argArray - An array of arguments to be passed to functionFunctionJSObject call(JSObject thisObject, JSObject args)
Example
//Call the default Object.toString() method to an object that //overrides it with its own version of the method Object.prototype.toString().call(o);
thisObject - The object to which the function is applied.args - An array of arguments to be passed to functionFunction