Methods
(async, static) batchAsync_(obj, iterator) → {Promise.<(Array|Object)>}
Walk through each entry of an array of an object parallelly, faster than eachAsync_
- Source:
Parameters:
Name | Type | Description |
---|---|---|
obj |
Array
|
Object
|
|
iterator |
asyncIterator
|
Returns:
- Type:
-
Promise.<(Array|Object)>
(async, static) eachAsync_(obj, iterator) → {Promise.<(Array|Object)>}
Iterate an array of an object asynchronously
- Source:
Parameters:
Name | Type | Description |
---|---|---|
obj |
Array
|
Object
|
|
iterator |
asyncIterator
|
Returns:
- Type:
-
Promise.<(Array|Object)>
(async, static) filterAsync_(obj, asyncPredicate) → {Promise.<(Object|undefined)>}
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).
- Source:
Parameters:
Name | Type | Description |
---|---|---|
obj |
Array
|
Object
|
|
asyncPredicate |
asyncIterator
|
Returns:
- Type:
-
Promise.<(Object|undefined)>
(async, static) findAsync_(obj, asyncPredicate_) → {Promise.<(Object|undefined)>}
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.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
obj |
Array
|
Object
|
|
asyncPredicate_ |
asyncIterator
|
Returns:
- Type:
-
Promise.<(Object|undefined)>
(static) findKey(obj, predicate) → {Promise.<(Object|undefined)>}
Iterate a collection until predicate returns true The returned value is undefined if not found. That's different from the _.find() function in lodash.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
obj |
Array
|
Object
|
|
predicate |
iterator
|
Returns:
- Type:
-
Promise.<(Object|undefined)>
(async, static) findKeyAsync_(obj, asyncPredicate_) → {Promise.<(Object|undefined)>}
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.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
obj |
Array
|
Object
|
|
asyncPredicate_ |
asyncIterator
|
Returns:
- Type:
-
Promise.<(Object|undefined)>