3.0.7 • Published 9 months ago

it-all v3.0.7

Weekly downloads
20,435
License
Apache-2.0 OR MIT
Repository
github
Last release
9 months ago

it-all

codecov CI

Collects all values from an (async) iterable and returns them as an array

About

For when you need a one-liner to collect iterable values.

Example

import all from 'it-all'

// This can also be an iterator, etc
const values = function * () {
  yield * [0, 1, 2, 3, 4]
}

const arr = all(values)

console.info(arr) // 0, 1, 2, 3, 4

Async sources must be awaited:

const values = async function * () {
  yield * [0, 1, 2, 3, 4]
}

const arr = await all(values())

console.info(arr) // 0, 1, 2, 3, 4

Install

$ npm i it-all

Browser <script> tag

Loading this module through a script tag will make its exports available as ItAll in the global namespace.

<script src="https://unpkg.com/it-all/dist/index.min.js"></script>

API Docs

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

@solcial/client@everything-registry/sub-chunk-1939wnfs-migrationwelostorverse-sao-modelipfs-demoipfs-deployipfs-interopipfs-http-serveripfs-message-port-serveripfs-mfsjs-wakuipfs-utilsipfs-core-configipfs-core-utilsipfs-cohostipfs-car-utilsipfs-car-vipfs-car-webpack-pluginipfs-core-skogardipfs-unixfs-importeripfs-uploaderit-sortkahnknightxv-libp2pigishipr-ipfshexo-deployer-pinatahardhat-ipfsinterface-datastore-testsinterface-ipfs-coreinterface-blockstore-testslibp2p-daemonlibp2p-kad-dhtkubo-rpc-clientkiwistandkotods-apikotods-ssb@waku/peer-exchange@waku/core@web3-storage/ucanto-name-system@wnfs-wg/nest@xmader/ipfs-core@types/it-all@tracelabs/kad-dht@thebuidler/ipfs-deploy@vascosantos/ipfs-unixfs-importer@zalastax/nolb-it-@zedvision/ipfsall-build@orbitdb/voyager@opendreamnet/ipfs@orca-x/ipfs-deploy@osn/ipfs@peopledata/minty@plebbit/plebbit-jsforestpmforagepmgeesome-libs@pratikgohil.dev/stackos-v2contract-package@chainsafe/lodestar-db@ceramicnetwork/core@chris.troutner/ipfs-cli@chris.troutner/ipfs-core@chris.troutner/ipfs-core-utils@chris.troutner/ipfs-http-server@chris.troutner/ipfs-message-port-server@chris.troutner/interface-ipfs-corechain-ipfs-unixfs-importerdatastore-ossbgipfsbgipfs-technophilebygonz@autismjs/protocol@bpx-chain/synapse-corespace-mvc@lodestar/beacon-node@lodestar/db@lodestar/reqresp@lazy-ipfs/compatible-add@libp2p/interface-compliance-tests@libp2p/interface-connection-encrypter-compliance-tests@libp2p/peer-store@libp2p/interface-stream-muxer-compliance-tests@libp2p/interface-transport-compliance-tests@libp2p/interop@dynasty-games/storagemtcrawleemfdborbit-db-mfsstorersk-multi-token-sdkrmrk-toolsreact-ipfs-uploadernovel-opds-nownot-a-thing-test-importerpixiu-swap-corepixiuswap-libs-sdkpolka-chatpure-ipfs-unixfs-importergit-remote-igis
3.0.7

9 months ago

3.0.6

2 years ago

3.0.5

2 years ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.6

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago