ts-fluent-iterators
TypeScript icon, indicating that this package has built-in type declarations

10.0.3 • Public • Published

Typescript Fluent Iterators

Provides fluent api operations on iterators, async iterators and promise iterators.

Description

The library provides the common transformation, filtering and aggregation operations on iterators, async iterators and promise iterators.

Quick start guide

Install from Node Package Manager: npm i ts-fluent-iterators

Add the following code to your index file:

import { iterator, Generators } from 'ts-fluent-iterators';

const iter = iterator(Generators.range());

console.log(
  `The first five even numbers are: ${iter
    .filter(n => n % 2 === 0)
    .take(5)
    .collect()}`
);

Operations supported

Usage

Click here for the Full API Reference.

License

Licensed under MIT.

Package Sidebar

Install

npm i ts-fluent-iterators

Weekly Downloads

199

Version

10.0.3

License

MIT

Unpacked Size

246 kB

Total Files

37

Last publish

Collaborators

  • acaron