terible

1.0.0-alpha.3 • Public • Published

terible

A terrible library for iterators.

Usage

 
const t = require('terible');
 
function *someGenerator() {
  for(let i = 0; i < 10; ++i) {
    yield i;
  }
}
 
t(someGenerator())
  .select(x=> x > 1)
  .reject(x=> x > 8)
  .map(x=> x * x)
  .forEach(x=> console.log(x));
 

Readme

Keywords

Package Sidebar

Install

npm i terible

Weekly Downloads

0

Version

1.0.0-alpha.3

License

ISC

Unpacked Size

3.65 kB

Total Files

5

Last publish

Collaborators

  • briandamaged