This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** returns boolean */ | |
type CallBackSome<T> = ( | |
value: T, | |
index?: number, | |
collection?: T[] | |
) => Promise<boolean>; | |
/** | |
* Async Some function | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** returns any type value */ | |
type CallBackReduceRight<T, R> = ( | |
accumulator: T | R, | |
value: T, | |
index?: number, | |
collection?: T[] | |
) => Promise<T | R>; | |
/** | |
* Async ReduceRight function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Signature of the callback | |
type CallBackReduce<T, R> = ( | |
accumulator: R, | |
value: T, | |
index?: number, | |
collection?: T[] | |
) => Promise<R>; | |
/** | |
* Async Reduce function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Signature of the callback | |
type CallBackMap<T, R> = ( | |
value: T, | |
index?: number, | |
collection?: T[] | |
) => Promise<R>; | |
/** | |
* Async Map function | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Signature of the callback | |
type CallBackForEach<T> = ( | |
value: T, | |
index?: number, | |
collection?: T[] | |
) => Promise<void>; | |
/** | |
* Async ForEach function | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Signature of the callback | |
type CallBackFindIndex<T> = ( | |
value: T, | |
index?: number, | |
collection?: T[] | |
) => Promise<boolean>; | |
/** | |
* Async FindIndex function | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Signature of the callback | |
type CallBackFind<T> = ( | |
value: T, | |
index?: number, | |
collection?: T[] | |
) => Promise<boolean>; | |
/** | |
* Async Find function | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Signature of the callback | |
type CallBackFilter<T> = ( | |
value: T, | |
index?: number, | |
collection?: T[] | |
) => Promise<boolean>; | |
/** | |
* Async Filter function | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Signature of the callback | |
type CallBackEvery<T> = ( | |
value: T, | |
index?: number, | |
collection?: T[] | |
) => Promise<boolean>; | |
/** | |
* Async Every function | |
* |