2.0.1 • Published 1 year ago

iterable-async v2.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
1 year ago

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

FunctionDescriptionWiki
asyncFilterFilter an iterable object asynchronously.wiki
asyncFindIndexFind an item's index in an iterable object asynchronouslywiki
asyncFindFind an item in an iterable object asynchronouslywiki
asyncForEachLoop over an iterable object asynchronouslywiki
asyncMapSortMap 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 functionwiki
asyncMapMap an iterable object asynchronouslywiki
asyncReduceReduce an iterable object asynchronouslywiki
asyncSortSort an iterable object asynchronouslywiki
2.0.1

1 year ago

1.1.0

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago