Core Object | NN | IE | ECMA |
Function | Creates a new function. | 2+ | 4+ | ECMA 1 |
|
Methods | NN | IE | ECMA |
apply() | Applies a method of another object to the current object. | 4+ | 5.5+ | n/a |
call() | Executes method of another object on current object. | 4+ | 5.5+ | n/a |
toSource() | String representing the source code of the function. | 4+ | n/a | n/a |
toString() | String representing the source code of the function. | 2+ | 4+ | ECMA 1 |
valueOf() | String representing the source code of the function. | 2+ | 4+ | ECMA 1 |
|
Properties | NN | IE | ECMA |
arguments | An array with the arguments passed to a function. | 2+ | 4+ | ECMA 1 |
arguments.callee | The function body of the currently executing function. | 2+ | 5.5+ | ECMA 1 |
arguments.length | Number of arguments passed to the function. | 2+ | 5.5+ | ECMA 1 |
caller | Reference to the function that created an object. | 3+ | 4+ | ECMA 1 |
constructor | Reference to the function that created an object. | 2+ | 4+ | ECMA 1 |
length | Number of arguments expected by the function. | 2+ | 4+ | ECMA 1 |
prototype | Creates a new method for Function objects. | 2+ | 4+ | ECMA 1 |