3.0.7 • Published 2 months ago

it-all v3.0.7

Weekly downloads
20,435
License
Apache-2.0 OR MIT
Repository
github
Last release
2 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-model@dreamcatcher-tech/interblock@dreamcatcher-ai/cli@compendia/ipfs-core@compendia/libp2p-commonjs@cuser/core@cuser/reader@cypsela/sailplane-node@coobeet/react-drive@douganderson444/ipld-car-txs@rosen-chains/ergo-explorer-network@rosen-chains/ergo-node-network@pratikgohil.dev/stackos-v2contract-package@rsksmart/ipfs-cpinner-provideripfs-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-libp2p@bpx-chain/synapse-corespace-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@saonetwork/model@scribalous/ipld-cms@opendreamnet/ipfs@plebbit/plebbit-js@orca-x/ipfs-deploy@osn/ipfs@peopledata/minty@spike.land/ipfs@smontero/hashed-confidential-docs@smontero/hashed-private-client-api@sekmet/react-ipfs-uploadermtcrawleemfdborbit-db-mfsstore
3.0.7

2 months ago

3.0.6

1 year ago

3.0.5

1 year ago

3.0.4

1 year ago

3.0.3

2 years 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

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago