Functions
all
- all<_ContainerType>(container: Iterable<Promise<_ContainerType>>): Promise<Array<_ContainerType>>
-
Type parameters
Parameters
-
container: Iterable<Promise<_ContainerType>>
Returns Promise<Array<_ContainerType>>
dfs_iter
- dfs_iter<_ContainerType>(container: Iterable<_ContainerType>, getChildren: function): IterableIterator<_ContainerType>
-
Type parameters
Parameters
-
container: Iterable<_ContainerType>
-
getChildren: function
-
- (i: _ContainerType): Iterable<_ContainerType> | undefined | EmptyArray<_ContainerType>
-
Parameters
Returns Iterable<_ContainerType>
|
undefined
|
EmptyArray<_ContainerType>
Returns IterableIterator<_ContainerType>
filter
- filter<_ContainerType>(container: Iterable<_ContainerType>, predicate: function): IterableIterator<_ContainerType>
-
Type parameters
Parameters
-
container: Iterable<_ContainerType>
-
predicate: function
-
- (i: _ContainerType): boolean
-
Parameters
Returns boolean
Returns IterableIterator<_ContainerType>
isEmptyArray
- isEmptyArray<_ContainerType>(test: unknown): test is EmptyArray<_ContainerType>
-
Type parameters
Parameters
Returns test is EmptyArray<_ContainerType>
map
- map<_ContainerType, _TransformedContainerType>(container: Iterable<_ContainerType>, fn: function): IterableIterator<_TransformedContainerType>
-
Type parameters
-
_ContainerType
-
_TransformedContainerType
Parameters
-
container: Iterable<_ContainerType>
-
fn: function
-
- (i: _ContainerType): _TransformedContainerType
-
Parameters
Returns _TransformedContainerType
Returns IterableIterator<_TransformedContainerType>
merge
- merge<_ContainerType>(...iterators: Array<Iterable<_ContainerType>>): Iterable<_ContainerType>
-
Type parameters
Parameters
-
Rest ...iterators: Array<Iterable<_ContainerType>>
Returns Iterable<_ContainerType>
mergeUnique
- mergeUnique<_ContainerType>(...iterators: Array<Iterable<_ContainerType>>): Iterable<_ContainerType>
-
Type parameters
Parameters
-
Rest ...iterators: Array<Iterable<_ContainerType>>
Returns Iterable<_ContainerType>
Wait until all promises in a container resolve, returning an array of their results Beware: this function flattens the iterable!