Provides helper functions for function objects.
Type | Name | Signature |
---|---|---|
function | bindThis | Function bindThis(Function, var) |
function | bindArgs | Function bindArgs(Any[]) |
Function bindThis(Function func, var thisVal)
Bind this
to the given value.
Parameters
this
keyword inside the given function.Returns
this
value has been bound;Function bindArgs(var[] args)
Bind the first few arguments to the given values. The this
variable remains unchanged.
Parameters
Returns