package js.lib
Available on js
new(arg:String, rest:Rest<String>)Creates a new Function object.
read onlylength:IntSpecifies the number of arguments expected by the function.
name:StringThe name of the function.
apply(thisArg:Dynamic, argsArray:Array<Dynamic>):DynamicCalls a function and sets its this to the provided value, arguments can be passed as an Array object.
bind(thisArg:Dynamic, args:Rest<Dynamic>):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.
call(thisArg:Dynamic, args:Rest<Dynamic>):DynamicCalls (executes) a function and sets its this to the provided value, arguments can be passed as they are.
toString():StringReturns a string representing the source code of the function.
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/lib/Function.html