# iterators

> iterate over collections in sync & async

Latest version **0.3.3** (published 2012-11-15) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.3 |
| Published | 2012-11-15 |
| First published | 2012-07-15 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Raynos |
| Maintainers | raynos |

## Links

- npm: https://www.npmjs.com/package/iterators
- Repository: https://github.com/Raynos/iterators
- Issues: https://github.com/Raynos/iterators/issues
- npm.io page: https://npm.io/package/iterators

## Dependencies (1)

- [ap](https://npm.io/package/ap.md) git://github.com/Raynos/node-ap

## Recent versions

- 0.3.3 (latest) — 2012-11-15
- 0.3.2 — 2012-11-15
- 1.0.0 — 2012-10-20
- 0.3.1 — 2012-10-10
- 0.3.0 — 2012-08-22
- 0.2.0 — 2012-08-16
- 0.1.0 — 2012-07-15

## README

# Iterators [![build status][1]][2]

Iterate over collections in sync or async

## Example

    var iterators = require("iterators")
        , map = iterators.map
        , fs = require("fs")
        , readFile = fs.readFile

    map({
        "foo": "test/foo.js"
        , "bar": "test/bar.js"
    }, readFile, function (err, files) {
        // files.foo, files.bar
    })

## Motivation

There are a few minor issues with the iterators on Array.prototype and alternatives provided by underscore / async.

This library fixes the following nitpicks:

 - You can call an iterator on both an array and an object
 - every / some return the truthy / falsey value without coercing to a boolean
 - reduce / reduceRight accept a optional thisValue
 - provides asynchronous implementations of all iterators that use a 
    callback<Error, Value> instead of returning the value

## Installation

`npm install composite`

## Tests

`make test`

## Contributors

 - Raynos

## MIT Licenced

  [1]: https://secure.travis-ci.org/Raynos/iterators.png
  [2]: http://travis-ci.org/Raynos/iterators 
  [3]: https://github.com/Raynos/iterators/tree/master/test

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