- Source:
Methods
(static) eachIterableF<T extends Iterable<any>>(callbackFn, iterable) → {T}
- Source:
Name | Type | Description |
---|---|---|
callbackFn |
EachIterableCallbackType<T, void> | |
iterable |
T |
Returns:
- Type
- T
(static) filterIterableF<T extends Iterable<any>>(callbackFn, iterable) → {IterableIterator<CheckPromiseIterableType<T>>}
- Source:
Name | Type | Description |
---|---|---|
callbackFn |
EachIterableCallbackType<T, boolean> | |
iterable |
T |
Returns:
- Type
- IterableIterator<CheckPromiseIterableType<T>>
(static) headIterable<T>(iterable) → {T}
- Source:
Name | Type | Description |
---|---|---|
iterable |
Iterable<T> |
Returns:
- Type
- T
(static) mapIterableF<T extends Iterable<any>, U>(callbackFn, iterable) → {Iterable<U | Promise<U>>}
- Source:
Name | Type | Description |
---|---|---|
callbackFn |
EachIterableCallbackType<T, U> | |
iterable |
T |
mapIterableF<T extends Iterable<any>, U>(callbackFn, iterable) → {CheckPromiseType<CheckIterableType<T>, Iterable<U | Promise<U>>, Iterable<U>>}
Name | Type | Description |
---|---|---|
callbackFn |
EachIterableCallbackType<T, U> | |
iterable |
T |
Returns:
- Type
- Iterable<U | Promise<U>>
(static) reduceIterableF<T, U extends Iterable<any>>(callbackFn, initial, iterable) → {Promise<T> | T}
- Source:
Name | Type | Description |
---|---|---|
callbackFn |
ReduceIterableCallbackType<T, CheckPromiseIterableType<U>, U> | |
initial |
T | |
iterable |
U |
reduceIterableF<T, U extends Iterable<any>>(callbackFn, initial, iterable) → {IterableReturnType<U, T>}
Name | Type | Description |
---|---|---|
callbackFn |
ReduceIterableCallbackType<T, CheckPromiseIterableType<U>, U> | |
initial |
T | |
iterable |
U |
Returns:
- Type
- Promise<T> | T
(static) tailIterable<T>(iterable) → {T}
- Source:
Name | Type | Description |
---|---|---|
iterable |
Iterable<T> |
Returns:
- Type
- T
(static) takeIterableF<T>(length, iterable) → {PromiseReturnType<Array<PureType<T>>>}
- Source:
Name | Type | Description |
---|---|---|
length |
number | |
iterable |
AsyncIterableType<T> |
Returns:
- Type
- PromiseReturnType<Array<PureType<T>>>
Type Definitions
EachIterableCallbackType<T extends Iterable<any>, U>
- Source:
Type:
- (value: CheckPromiseIterableType<T>, iterable: T) => U
IterableReturnType<T extends Iterable<any>, U>
- Source:
Type:
- CheckPromiseReturnType<CheckIterableType<T>, U>
ReduceIterableCallbackType<T, U, R extends Iterable<U | Promise<U>> = Iterable<U>>
- Source:
Type:
- (previousValue: T, currentValue: U, iterable: R) => T