Function

Properties & methods

Function.create( )
Create a function with the given variable as name
Function.doAmount( )
Execute the `task` the given amount of tasks
Function.doTime( )
Do the `task` for the given amount of ms
Function.doUntil( )
Do `task` at least once, and then while `test` returns falsy
Function.doWhile( )
Do `task` at least once and then while `test` returns truthy
Function.dummy( )
A dummy function
Function.parallel( )
Run (async) functions in parallel
Function.series( )
Run (async) functions in serie
Function.thrower( )
A function that will `throw` the first argument (if it is truthy)
Function.timebomb( )
Create a timebomb that needs to be defused or it'll throw an error
Function.until( )
Do `task` while `test` returns falsy
Function.while( )
Do `task` while `test` returns truthy
Function#methodize( )
Create a function that will call the given function with 'this' as the first argument
Function#unmethodize( )
Create a function that will call the given function with the first argument as the context