Module: Utilities

Methods

(static) isUndefined(value) → {boolean}

Helper method to determine if a value is undefined or not

Parameters:
Name Type Description
value any

The value to check

Source:
Returns:

Whether the value is undefined or not

Type
boolean

(static) pipeline(…fns) → {any}

Method to handle sequential tasks that rely on the output of the previous task

Parameters:
Name Type Attributes Description
fns Array.<function()> <repeatable>

The functions you would like to run over the input

Source:
Returns:

The result of the pipeline processing

Type
any

(static) pipelineClosureMethod(func, …args) → {function}

This method allows you to pass more arguments through the pipeline via a closure

Parameters:
Name Type Attributes Description
func function

The method you want to run in the pipeline

args any <repeatable>

The closure args you want to use in the method

Source:
Returns:

A method to be called with a new argumnet as well as those captured in the closure

Type
function

(static) sleep(time) → {void}

Method to handle sequential tasks that rely on the output of the previous task

Parameters:
Name Type Description
time number

The time, in ms, to sleep for

Source:
Returns:

Nothing

Type
void