npm.io
16.0.1 • Published 1 year ago

ts-fluent-iterators

Licence
MIT
Version
16.0.1
Deps
0
Size
111 kB
Vulns
0
Weekly
0

Typescript Fluent Iterators

Provides fluent api operations on iterators.

Description

The library provides the common transformation, filtering and aggregation operations on 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.

Keywords