Constructor

new(arg:String, rest:Rest<String>)

Creates a new Function object.

Variables

read onlylength:Int

Specifies the number of arguments expected by the function.

name:String

The name of the function.

Methods

apply(thisArg:Dynamic, argsArray:Array<Dynamic>):Dynamic

Calls a function and sets its this to the provided value, arguments can be passed as an Array object.

bind(thisArg:Dynamic, args:Rest<Dynamic>):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.

call(thisArg:Dynamic, args:Rest<Dynamic>):Dynamic

Calls (executes) a function and sets its this to the provided value, arguments can be passed as they are.

toString():String

Returns a string representing the source code of the function.