# es6lazy

> Lazy, ES6, higher order, processing methods

Latest version **1.0.0** (published 2014-10-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install es6lazy
pnpm add es6lazy
yarn add es6lazy
bun add es6lazy
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2014-10-01 |
| First published | 2014-10-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.11.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Samuel Giles |
| Maintainers | samgiles |
| Keywords | ES6, lazy, generators |

## Links

- npm: https://www.npmjs.com/package/es6lazy
- npm.io page: https://npm.io/package/es6lazy

## Recent versions

- 1.0.0 (latest) — 2014-10-01

## README

# ES6 Lazy Higher Order Functions

Map and filter over generators.

Example:

```JS
'use strict';
function* myGenerator() {
	for(let x = 0; x < 10; x++) {
		yield x;
	}
}

const filtered = lazy.filter(myGenerator(), function(x) {
	return (x % 2) === 0;
});

const mapped = lazy.map(filtered, function(x) {
	return x + 1;
});

console.log(lazy.iterToArray(mapped));
// [1, 3, 5, 7, 9]
```

## API

TODO:


### License

MIT (c) Samuel Giles 2014

---
_Source: https://npm.io/package/es6lazy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
