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-buildforestpmforagepmgeesome-libschain-ipfs-unixfs-importerdatastore-ossbgipfsbgipfs-technophilebygonz@bpx-chain/synapse-corespace-mvc@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-igisgit-remote-ipfsgit-remote-ipfs-mam@cuser/reader@cuser/core@cypsela/sailplane-node@decentology/hyperverse-storage-ipfs@decloudlabs/skynet@decloudlabs/skynet-static-encryptor@decloudlabs/stk-file-encryptor@decloudlabs/stk-v2@decloudlabs/videoencryption@compendia/ipfs-core@compendia/libp2p-commonjs@coobeet/react-drive@douganderson444/ipld-car-txs@dreamcatcher-ai/cli@dreamcatcher-tech/interblock@dstack-js/lib@dxos/plugin-wnfs@feedloop/foundry@iblcomponents/ipfs-upload@iblcomponents/generate-nft@helia/interop@helia/pinning-service-api-server@helia/routing-v1-http-api-client@helia/unixfs
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