@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1
  • 1.0.0
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i @anywhichway/all

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

3.38 kB

Total Files

6

Last publish

Collaborators

  • anywhichway