iterable-async
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

Iterable Async

Try iterable-async on RunKit Documentation Known Vulnerabilities

A collection of methods for looping iterable objects asynchronously using something similar to the Array api.

Installation

 $ npm install iterable-async

Dependencies

  • None

Supports

  • JavaScript
  • TypeScript

Usage

ES6 Format

const {
	asyncFind,
	asyncFindIndex,
	asyncFilter,
	asyncForEach,
	asyncMap,
	asyncMapSort,
	asyncReduce,
	asyncSort
} = require('iterable-async');

TypeScript Format

import {
	asyncFind,
	asyncFindIndex,
	asyncFilter,
	asyncForEach,
	asyncMap,
	asyncMapSort,
	asyncReduce,
	asyncSort
} from "iterable-async";

Functions

Function Description Wiki
asyncFilter Filter an iterable object asynchronously. wiki
asyncFindIndex Find an item's index in an iterable object asynchronously wiki
asyncFind Find an item in an iterable object asynchronously wiki
asyncForEach Loop over an iterable object asynchronously wiki
asyncMapSort Map an iterable object asynchronously and then resolve when it's sorted, this method is much more efficient than running a regular asyncSort when done with a synchronous comparison function wiki
asyncMap Map an iterable object asynchronously wiki
asyncReduce Reduce an iterable object asynchronously wiki
asyncSort Sort an iterable object asynchronously wiki

Package Sidebar

Install

npm i iterable-async

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

25 kB

Total Files

29

Last publish

Collaborators

  • sykander