Function
js.lib.Function (extern class)
Instance Members
length: IntSpecifies the number of arguments expected by the function.
name: StringThe name of the function.
Calls a function and sets its this to the provided value, arguments can be passed as an Array object.
| Name | Type |
|---|---|
thisArg |
Dynamic |
argsArray |
Array<Dynamic> |
| Returns |
|---|
| Dynamic |
call(thisArg: Dynamic, args: haxe.extern.Rest): DynamicCalls (executes) a function and sets its this to the provided value, arguments can be passed as they are.
| Name | Type |
|---|---|
thisArg |
Dynamic |
args |
haxe.extern.Rest |
| Returns |
|---|
| Dynamic |
bind(thisArg: Dynamic, args: haxe.extern.Rest): FunctionCreates a new function which, when called, has its this set to the provided value, with a given sequence of arguments preceding any provided when the new function was called.
| Name | Type |
|---|---|
thisArg |
Dynamic |
args |
haxe.extern.Rest |
| Returns |
|---|
| Function |
toString(): StringReturns a string representing the source code of the function.
| Returns |
|---|
| String |
new(arg: String, rest: haxe.extern.Rest): VoidCreates a new Function object.
| Name | Type |
|---|---|
arg |
String |
rest |
haxe.extern.Rest |