3.0.6 • Published 8 months ago

it-all v3.0.6

Weekly downloads
20,435
License
Apache-2.0 OR MIT
Repository
github
Last release
8 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 it's 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-migrationwelormrk-toolsstorverse-sao-modelrsk-multi-token-sdk@bpx-chain/synapse-coremfdblibp2p-daemonlibp2p-kad-dhthexo-deployer-pinatagit-remote-igisgit-remote-ipfsgit-remote-ipfs-mamjs-wakuipfs-car-utilsipfs-car-vipfs-car-webpack-pluginipfs-demoipfs-deployipfs-core-configipfs-core-skogardipfs-cohostipfs-core-utilsinterface-blockstore-testsinterface-ipfs-coreinterface-datastore-testsipfs-message-port-serveripfs-mfsipfs-interopipfs-http-serveripfs-unixfs-importeripfs-utilsit-sortmtcrawleekahnkiwistandknightxv-libp2pkotods-apikotods-ssbkubo-rpc-clienthardhat-ipfshipr-ipfsigisorbit-db-mfsstorepolka-chatpixiu-swap-corepixiuswap-libs-sdkpure-ipfs-unixfs-importernot-a-thing-test-importernovel-opds-nowreact-ipfs-uploaderspace-mvc@autismjs/protocol@chris.troutner/ipfs-cli@chris.troutner/ipfs-core@chris.troutner/ipfs-core-utils@chris.troutner/ipfs-http-server@chris.troutner/ipfs-message-port-server@chainsafe/lodestar-db@ceramicnetwork/core@chris.troutner/interface-ipfs-core@decentology/hyperverse-storage-ipfs@decloudlabs/skynet@decloudlabs/skynet-static-encryptor@decloudlabs/stk-file-encryptor@decloudlabs/stk-v2@decloudlabs/videoencryption@feedloop/foundry@dstack-js/lib@helia/pinning-service-api-server@helia/routing-v1-http-api-client@helia/unixfs@helia/interop@hashed-alejandro/afloat-client@iblcomponents/generate-nft@iblcomponents/ipfs-upload@gatsby-tv/utilities@galtproject/browser-ipfs@galtproject/js-ipfs@lodestar/beacon-node@lodestar/db@lodestar/reqresp@lazy-ipfs/compatible-add@libp2p/interface-compliance-tests@libp2p/interface-connection-encrypter-compliance-tests@ipfs-flipstarter/cli@ipfs-flipstarter/core@ipfs-flipstarter/utils@libp2p/peer-store@libp2p/interface-stream-muxer-compliance-tests@libp2p/interface-transport-compliance-tests@libp2p/interop@dynasty-games/storage@mdip/ipfs-core@mdip/libp2p@jmgayosso/afloat-client@kodex-data/hardhat-ipfs@joystream/cli
3.0.6

8 months ago

3.0.5

8 months ago

3.0.4

1 year ago

3.0.3

1 year ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.6

3 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago