Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

iterates

Pajn56BSD-3-Clause2.0.0-beta.3TypeScript support: included

Iterator and AsyncIterator helper functions with typings

iterator, asynciterator, async, typescript

readme

iterates

Build Status

Iterates provides common collection functions like filter and map for both syncronous and asyncronous iterators.

Iterates is written in Typescript and bundles typings with the module.

Modules

Both commonjs and ES modules are provided. Imports from iterates/sync and iterates/async is automatically resolved to the correct version.

Currying

All methods are autocurried to support specialization and composition.

Documentation

Please see https://pajn.github.io/iterates

changelog

2.0.0

  • Require an enivronment that supports for await natively. This should be all evergreen browsers and node version >= 10
  • The shorthand imports iterates/sync and iterates/async require node version >= 12.7

1.2.2

  • Fix missing js files in cjs and missing map files in lib

1.2.1

  • Also link typings file from sub-packages

1.2.0

  • Add support for automatic resolution of ESM or CJS import

1.1.0

  • Add scan and partition
  • Add pure annotations to output for better tree shaking

1.0.1

  • Bugfix: async/take did not end its iterator after taking the requested number of values

1.0.0

1.0.0 to mark stability, it is fully compatible with 0.3.8

  • Add collectRecord, all and any