Global

Methods


<async> asyncFilter(iterable, callback [, thisArg])

Async Filter Filter asynchronously and resolve when all callbacks are resolved
Parameters:
Name Type Argument Description
iterable Array.<any>
callback function callback(currentValue, index, array)
thisArg any <optional>
Source:
Throws:
TypeError
Returns:
Type
Promise.<Array.<any>>

<async> asyncFind(iterable, callback [, thisArg])

Async Find Find an item asynchronously and resolve when found or all callbacks resolve
Parameters:
Name Type Argument Description
iterable Array.<any>
callback function callback(currentValue, index, array)
thisArg any <optional>
Source:
Throws:
TypeError
Returns:
Type
Promise.<any>

<async> asyncFindIndex(iterable, callback [, thisArg])

Async Find Index Find an item's index asynchronously and resolve when found or all callbacks resolve
Parameters:
Name Type Argument Description
iterable Array.<any>
callback function callback(currentValue, index, array)
thisArg any <optional>
Source:
Throws:
TypeError
Returns:
- an integer index, -1 if not found
Type
Promise.<Number>

<async> asyncForEach(iterable, callback [, thisArg])

Async For Each Loop asynchronously and resolve when all callbacks are resolved
Parameters:
Name Type Argument Description
iterable Array.<any>
callback function callback(currentValue, index, array)
thisArg any <optional>
Source:
Throws:
TypeError
Returns:
Type
Promise.<void>

<async> asyncMap(iterable, callback [, thisArg])

Async Map Map asynchronously and resolve when all callbacks are resolved
Parameters:
Name Type Argument Description
iterable Array.<any>
callback function callback(currentValue, index, array)
thisArg any <optional>
Source:
Throws:
TypeError
Returns:
Type
Promise.<Array.<any>>

<async> asyncMapSort(iterable, mappingFunction [, comparisonFunction])

Async Map Sort Map asynchronously, then sort asynchronously (although you should use a synchronous function here if possible) then resolve alternatively reject at the first error
Parameters:
Name Type Argument Default Description
iterable Array.<any>
mappingFunction function mappingFunction(currentValue, index, array)
comparisonFunction function <optional>
compareByUnicode
Source:
Throws:
TypeError
Returns:
Type
Promise.<Array.<any>>

<async> asyncReduce(iterable, callback [, accumulator])

Async Reduce Reduce asynchronously and resolve when all items have been transduced.
Parameters:
Name Type Argument Default Description
iterable Array.<any>
callback function callback(accumulator, currentValue, index, array)
accumulator any <optional>
noParam
Source:
Throws:
TypeError
Returns:
Type
Promise.<any>

<async> asyncSort(iterable [, compare])

Async Sort Asynchronously sorts and resolves when fully sorted note that the object is sorted in place and no copy is made
Parameters:
Name Type Argument Default Description
iterable Array.<any>
compare function <optional>
compareByUnicode default is sort by item's unicode value
Source:
Throws:
TypeError
Returns:
returns original iterable
Type
Promise.<iterable>