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.getArgumentNames( )
Get the name of a function's arguments
Function.parallel( )
Run (async) functions in parallel
Function.regulate( )
Create a new function that will only be able to be called the given amount of times
Function.series( )
Run (async) functions in serie
Function.throttle( )
Create a new function that will only be able to be called once per given ms
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