- Source:
Methods
(static) eachArray<T = any>() → {<U extends T>(arr: U[]) => U[]|...}
- Source:
eachArray<T = any>(f) → {<U extends T>(arr: U[]) => U[]}
Name | Type | Description |
---|---|---|
f |
EachArrayCallbackType<T, void> |
eachArray<T = any>(f, arr) → {T[]}
Name | Type | Description |
---|---|---|
f |
EachArrayCallbackType<T, void> | |
arr |
T[] |
Returns:
- Type
- <U extends T>(arr: U[]) => U[] | ...
(static) eachArrayF<T>(f, arr) → {T[]}
- Source:
Name | Type | Description |
---|---|---|
f |
EachArrayCallbackType<T, void> | |
arr |
T[] |
Returns:
- Type
- T[]
(static) filterArray<T = any>() → {Curry1<T[], T[]>|...}
- Source:
filterArray<T = any>(f) → {Curry1<T[], T[]>}
Name | Type | Description |
---|---|---|
f |
EachArrayCallbackType<T, boolean> |
filterArray<T = any>(f, arr) → {T[]}
Name | Type | Description |
---|---|---|
f |
EachArrayCallbackType<T, boolean> | |
arr |
T[] |
Returns:
- Type
- Curry1<T[], T[]> | ...
(static) filterArrayF<T>(f, arr) → {T[]}
- Source:
Name | Type | Description |
---|---|---|
f |
EachArrayCallbackType<T, boolean> | |
arr |
T[] |
Returns:
- Type
- T[]
(static) headArray<T>(iterator) → {T}
- Source:
Name | Type | Description |
---|---|---|
iterator |
T[] |
Returns:
- Type
- T
(static) mapArray<T = any, U = any>() → {<A extends T, B extends U>(arr: A[]) => B[]|...}
- Source:
mapArray<T = any, U = any>(f) → {<A extends T, B extends U>(arr: A[]) => B[]}
Name | Type | Description |
---|---|---|
f |
EachArrayCallbackType<T, U> |
mapArray<T = any, U = any>(f, arr) → {U[]}
Name | Type | Description |
---|---|---|
f |
EachArrayCallbackType<T, U> | |
arr |
T[] |
Returns:
- Type
- <A extends T, B extends U>(arr: A[]) => B[] | ...
(static) mapArrayF<T, U>(f, arr) → {U[]}
- Source:
Name | Type | Description |
---|---|---|
f |
EachArrayCallbackType<T, U> | |
arr |
T[] |
Returns:
- Type
- U[]
(static) reduceArray<T, U>() → {Curry2<T, U[], T>|...}
- Source:
reduceArray<T, U>(callbackFn) → {Curry2<T, U[], T>}
Name | Type | Description |
---|---|---|
callbackFn |
ReduceArrayCallbackType<T, U> |
reduceArray<T, U>(callbackFn, initial) → {Curry1<U[], T>}
Name | Type | Description |
---|---|---|
callbackFn |
ReduceArrayCallbackType<T, U> | |
initial |
T |
reduceArray<T, U>(callbackFn, initial, arr) → {T}
Name | Type | Description |
---|---|---|
callbackFn |
ReduceArrayCallbackType<T, U> | |
initial |
T | |
arr |
U[] |
Returns:
- Type
- Curry2<T, U[], T> | ...
(static) reduceArrayF<T, U>(callbackFn, initial, arr) → {T}
- Source:
Name | Type | Description |
---|---|---|
callbackFn |
ReduceArrayCallbackType<T, U> | |
initial |
T | |
arr |
U[] |
Returns:
- Type
- T
(static) tailArray<T>(iterator) → {T}
- Source:
Name | Type | Description |
---|---|---|
iterator |
T[] |
Returns:
- Type
- T
(static) takeArray<T extends any[]>() → {<U extends T>(arr: U) => ArrayPromiseReturnType<U>|...}
- Source:
takeArray<T extends any[]>(length) → {<U extends T>(arr: U) => ArrayPromiseReturnType<U>}
Name | Type | Description |
---|---|---|
length |
number |
takeArray<T extends any[]>(length, arr) → {ArrayPromiseReturnType<T>}
Name | Type | Description |
---|---|---|
length |
number | |
arr |
T |
Returns:
- Type
- <U extends T>(arr: U) => ArrayPromiseReturnType<U> | ...
(static) takeArrayF<T extends any[]>(length, arr) → {ArrayPromiseReturnType<T>}
- Source:
Name | Type | Description |
---|---|---|
length |
number | |
arr |
T |
takeArrayF<T extends any[]>(length, arr) → {ArrayPromiseReturnType<T>}
Name | Type | Description |
---|---|---|
length |
number | |
arr |
T |
Returns:
- Type
- ArrayPromiseReturnType<T>
Type Definitions
ArrayPromiseReturnType<T extends any[]>
- Source:
Type:
- CheckPromiseType<CheckIterableType<T>, PromiseReturnType<Array<CheckPromiseIterableType<T>>>, Array<CheckPromiseIterableType<T>>>
EachArrayCallbackType<T, U, R extends Array<T | Promise<T>> = T[]>
- Source:
Type:
- (value: T, key: number, iterator: R) => U
ReduceArrayCallbackType<T, U, R extends Array<U | Promise<U>> = U[]>
- Source:
Type:
- (previousValue: T, currentValue: U, currentIndex: number, arr: R) => T