arraync
Async Array methods polyfills
Install
npm install --save arraync
Setup
;
Features and Usage
- forEachAsync(callback: Func<T, Promise>, thisArg?: any): Promise;
await myArray;
- everyAsync(predicate: Func<T, Promise>, thisArg?: any): Promise;
const isEvery = await myArray;
- someAsync(predicate: Func<T, Promise>, thisArg?: any): Promise;
const isSome = await myArray;
- filterAsync(predicate: Func<T, Promise>, thisArg?: any): Promise<T[]>;
const filteredArray = await myArray;
- findAsync(predicate: Func<T, Promise>, thisArg?: any): Promise;
const foundItem = await myArray;
- findIndexAsync(predicate: Func<T, Promise>, thisArg?: any): Promise;
const foundIndex = await myArray;
- mapAsync<T, T1>(callback: Func<T, Promise>, thisArg?: any): Promise<T1[]>;
const mappedArray = await myArray;