@sebowy/async-array
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

AsyncArray

Run array higher order functions asynchronously

npm latest version Build states semantic-release

Installation

npm install --save @sebowy/async-array
# or
yarn add @sebowy/async-array

Usage

Examples

  • async sorting
import { AsyncArray } from "@sebowy/async-array";

const array = [3, 5, 1, 2, 4];
const asyncArray = new AsyncArray(array);
asyncArray
  .sort((left, right) => Promise.resolve(left - right))
  .then(console.log);

will produce:

[1, 2, 3, 4, 5]

Dependencies (0)

    Dev Dependencies (17)

    Package Sidebar

    Install

    npm i @sebowy/async-array

    Weekly Downloads

    3

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    80.3 kB

    Total Files

    52

    Last publish

    Collaborators

    • sebowy.dev