# simple-iterator

> Iterates over an array and sets scope to the current item, and index as parameter. Returns null if it isn't an array.

Latest version **0.0.2** (published 2016-04-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install simple-iterator
pnpm add simple-iterator
yarn add simple-iterator
bun add simple-iterator
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2016-04-11 |
| First published | 2016-04-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Patrik Höggren |
| Maintainers | phoggren |
| Keywords | iterate, iterator, simple-iterator, foreach, for, index, collection |

## Links

- npm: https://www.npmjs.com/package/simple-iterator
- Repository: https://github.com/phoggren/simple-iterator
- Homepage: https://github.com/phoggren/simple-iterator#readme
- Issues: https://github.com/phoggren/simple-iterator/issues
- npm.io page: https://npm.io/package/simple-iterator

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2016-04-11
- 0.0.1 — 2016-04-11

## README

Iterates over an array and sets scope to the current item, and index as parameter. Returns null if it isn't an array.

#### Install
`npm install simple-iterator --save`

#### Usage
    var iterator = require('simple-iterator');

    var array = ['Foo', 'bar', '2000'];

    iterator(array, function(index) {
        console.log(this + ' item has index ' + index);
    });

#### Author
Patrik Höggren  
patrik (a) hwkdev.se

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