Interface JSFunctionFunctions
- All Superinterfaces:
JSObjectFunctions
- All Known Subinterfaces:
JS5FunctionFunctions
- All Known Implementing Classes:
JS5Function, JSFunction
-
Method Summary
Methods inherited from interface JSObjectFunctions
hasOwnProperty, isPrototypeOf, propertyIsEnumerable, toLocaleString, toString, valueOf
-
Method Details
-
apply
function apply (thisObject, argArray) invoke a function as a method of an object.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);
- Parameters:
thisObject- The object to which the function is applied.argArray- An array of arguments to be passed to function- Returns:
- Whatever value is returned by function
- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
call
function call (thisObject, args) invoke a function as a method of an objectExample
//Call the default Object.toString() method to an object that //overrides it with its own version of the method Object.prototype.toString().call(o);
- Parameters:
thisObject- The object to which the function is applied.args- An array of arguments to be passed to function- Returns:
- Whatever value is returned by function
- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-