An open API service indexing awesome lists of open source software.

https://github.com/cyansalt/lazer

A Library of Lazy Evaluation for JavaScript Array.
https://github.com/cyansalt/lazer

Last synced: about 1 month ago
JSON representation

A Library of Lazy Evaluation for JavaScript Array.

Awesome Lists containing this project

README

          

# lazer
A Library of Lazy Evaluation for JavaScript Array.

### How to use

```javascript
import Lazer from 'somewhere'

Lazer.from([2, 4, 8])
.filter(i => i > 3)
.map(i => i + 1)
.reduce((a, c) => a + c, 0)
// 14

```

### Why Lazer?

In general, `Lazer` is a little bit slower than `Array` because of its complexity, but `Lazer` can make you decrease a lot of memory usage.