All Projects → Hacklone → arraync

Hacklone / arraync

Licence: MIT License
Async Array methods polyfills

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to arraync

P Iteration
Utilities that make array iteration easy when using async/await or Promises
Stars: ✭ 337 (+2006.25%)
Mutual labels:  promise, array, async-await
Rubico
[a]synchronous functional programming
Stars: ✭ 133 (+731.25%)
Mutual labels:  promise, async-await
Await Handler
Basic wrapper for await that allows handling of errors without try/catch blocks
Stars: ✭ 13 (-18.75%)
Mutual labels:  promise, async-await
debounce-async
A debounce function that delays invoking asynchronous functions.
Stars: ✭ 21 (+31.25%)
Mutual labels:  promise, async-await
Posterus
Composable async primitives with cancelation, control over scheduling, and coroutines. Superior replacement for JS Promises.
Stars: ✭ 536 (+3250%)
Mutual labels:  promise, async-await
P Map
Map over promises concurrently
Stars: ✭ 639 (+3893.75%)
Mutual labels:  promise, async-await
Foy
A simple, light-weight and modern task runner for general purpose.
Stars: ✭ 157 (+881.25%)
Mutual labels:  promise, async-await
Promise Fun
Promise packages, patterns, chat, and tutorials
Stars: ✭ 3,779 (+23518.75%)
Mutual labels:  promise, async-await
Kitsu
🦊 A simple, lightweight & framework agnostic JSON:API client
Stars: ✭ 166 (+937.5%)
Mutual labels:  promise, async-await
Await Of
await wrapper for easier errors handling without try-catch
Stars: ✭ 240 (+1400%)
Mutual labels:  promise, async-await
eslint-config-welly
😎 ⚙️ ESLint configuration for React projects that I do. Feel free to use this!
Stars: ✭ 21 (+31.25%)
Mutual labels:  promise, async-await
Thunks
A small and magical composer for all JavaScript asynchronous.
Stars: ✭ 523 (+3168.75%)
Mutual labels:  promise, async-await
Basic Ftp
FTP client for Node.js, supports FTPS over TLS, passive mode over IPv6, async/await, and Typescript.
Stars: ✭ 441 (+2656.25%)
Mutual labels:  promise, async-await
Then
🎬 Tame async code with battle-tested promises
Stars: ✭ 908 (+5575%)
Mutual labels:  promise, async-await
of
🍬 Promise wrapper with sugar 🍬
Stars: ✭ 13 (-18.75%)
Mutual labels:  promise, async-await
Unityfx.async
Asynchronous operations (promises) for Unity3d.
Stars: ✭ 143 (+793.75%)
Mutual labels:  promise, async-await
Evt
💧EventEmitter's typesafe replacement
Stars: ✭ 305 (+1806.25%)
Mutual labels:  promise, async-await
Express Promise Router
A lightweight wrapper for Express 4's Router that allows middleware to return promises
Stars: ✭ 309 (+1831.25%)
Mutual labels:  promise, async-await
Metasync
Asynchronous Programming Library for JavaScript & Node.js
Stars: ✭ 164 (+925%)
Mutual labels:  promise, array
conquerant
lightweight async/await for Clojure
Stars: ✭ 31 (+93.75%)
Mutual labels:  promise, async-await

arraync

Async Array methods polyfills

Note: The methods introduced by this library are not part of any ECMAScript standard or proposal

Install

npm install --save arraync

Setup

import 'arraync';

Features and Usage

  • forEachAsync<T>(callback: Func<T, Promise<any>>, thisArg?: any): Promise<void>;
await myArray.forEachAsync(async (item) => {
  await doSomethingAsync(item); 
});
  • everyAsync<T>(predicate: Func<T, Promise<boolean>>, thisArg?: any): Promise<boolean>;
const isEvery = await myArray.everyAsync(async (item) => {
  return await doSomethingAsync(item); 
});
  • someAsync<T>(predicate: Func<T, Promise<boolean>>, thisArg?: any): Promise<boolean>;
const isSome = await myArray.someAsync(async (item) => {
  return await doSomethingAsync(item); 
});
  • filterAsync<T>(predicate: Func<T, Promise<boolean>>, thisArg?: any): Promise<T[]>;
const filteredArray = await myArray.filterAsync(async (item) => {
  return await doSomethingAsync(item); 
});
  • findAsync<T>(predicate: Func<T, Promise<boolean>>, thisArg?: any): Promise<T>;
const foundItem = await myArray.findAsync(async (item) => {
  return await doSomethingAsync(item); 
});
  • findIndexAsync<T>(predicate: Func<T, Promise<boolean>>, thisArg?: any): Promise<number>;
const foundIndex = await myArray.findIndexAsync(async (item) => {
  return await doSomethingAsync(item); 
});
  • mapAsync<T, T1>(callback: Func<T, Promise<T1>>, thisArg?: any): Promise<T1[]>;
const mappedArray = await myArray.mapAsync(async (item) => {
  return await doSomethingAsync(item); 
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].