- Source:
- index.js
Methods
-
<async, static> batchAsync_(obj, iterator)
-
Walk through each entry of an array of an object parallelly, faster than eachAsync_
Parameters:
Name Type Description obj
Array | Object iterator
asyncIterator - Source:
- collection/batchAsync_.js
Returns:
- Type
- Promise.<(Array|Object)>
-
<async, static> eachAsync_(obj, iterator)
-
Iterate an array of an object asynchronously
Parameters:
Name Type Description obj
Array | Object iterator
asyncIterator - Source:
- collection/eachAsync_.js
Returns:
- Type
- Promise.<(Array|Object)>
-
<async, static> filterAsync_(obj, asyncPredicate)
-
Iterates over elements of collection asynchronously, returning an array of all elements predicate returns truthy for.
The predicate is invoked asynchronously with three arguments: (value, index|key, collection).Parameters:
Name Type Description obj
Array | Object asyncPredicate
asyncIterator - Source:
- collection/filterAsync_.js
Returns:
- Type
- Promise.<(Object|undefined)>
-
<async, static> findAsync_(obj, asyncPredicate_)
-
Iterate a collection asynchronously until predicate returns true
The returned value is undefined if not found.
That's different from the _.find() function in lodash.Parameters:
Name Type Description obj
Array | Object asyncPredicate_
asyncIterator - Source:
- collection/findAsync_.js
Returns:
- Type
- Promise.<(Object|undefined)>
-
<static> findKey(obj, predicate)
-
Iterate a collection until predicate returns true
The returned value is undefined if not found.
That's different from the _.find() function in lodash.Parameters:
Name Type Description obj
Array | Object predicate
iterator - Source:
- collection/findKey.js
Returns:
- Type
- Promise.<(Object|undefined)>
-
<async, static> findKeyAsync_(obj, asyncPredicate_)
-
Iterate a collection asynchronously until predicate returns true
The returned value is undefined if not found.
That's different from the _.find() function in lodash.Parameters:
Name Type Description obj
Array | Object asyncPredicate_
asyncIterator - Source:
- collection/findKeyAsync_.js
Returns:
- Type
- Promise.<(Object|undefined)>