Script Function object.
Properties | |
| name | readonly, string. name of the function. For anonymous (lambda) functions it is undefined. |
| fullName | readonly, string. Fully qualified name of the function, includes name of class or namespace. For anonymous (lambda) functions it is undefined. |
| length | readonly, integer. Returns total number of declared parameters. |
| optionals | readonly, integer. Returns number of optional parameters. |
Methods | |
| [this] |
([arg1:string [, arg2:string [, ... argN:string]],] functionBody:string) constructor, compiles the functionBody and creates function object of it. arg1... argN are names to be used by the function as formal argument names. Each must be a string that corresponds to a valid JavaScript identifier. |
| call |
( thisObj: object [, p0:value, ... pN:value] ) : value Invokes the function in context of this set to thisObj |
| apply |
( thisObj: object [,p0:value, ... pN:value] [, argv:array] ) : value Invokes the function in context of this set to thisObj. Parameters of the function call are compsed from list of parameters p0 ... pN and appended by members of argv array. Thus actual call will have following parameters list: p0, ..., pN, argv[0], ... argv[N]. |