Function
js.lib.Function (extern class)
Instance Members
length: Int
Specifies the number of arguments expected by the function.
name: String
The 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): Dynamic
Calls (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): Function
Creates 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(): String
Returns a string representing the source code of the function.
Returns |
---|
String |
new(arg: String, rest: haxe.extern.Rest): Void
Creates a new Function object.
Name | Type |
---|---|
arg |
String |
rest |
haxe.extern.Rest |