@anywhichway/all

1.0.1 • Public • Published

all

Collects all values for any iterable, promised iterable, or item that can be converted into an iterable as an array

Usage

await all(item,what="values")

Item could be a generator, async generator, Set, etc.

How It Works

  1. awaits item so that if it is a Promise, it resolves
  2. calls @anywhichway/map to collect items

See https://www.npmjs.com/package/@anywhichway/map for usage of what.

Release History (Reverse Chronological Order)

2023-01-04 v1.0.1 Updated documentation.

2023-01-04 v1.0.0 Updated to use @anywhichway/map v1.0.0 which has 95% test coverage.

2023-01-01 v0.0.1 Initial public release

Readme

Keywords

Package Sidebar

Install

npm i @anywhichway/all

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.38 kB

Total Files

6

Last publish

Collaborators

  • anywhichway