# @amphibian/iterate-up-array

> while loop abstraction for looping through indices from 0 to Array.length

Latest version **1.0.1** (published 2016-12-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install @amphibian/iterate-up-array
pnpm add @amphibian/iterate-up-array
yarn add @amphibian/iterate-up-array
bun add @amphibian/iterate-up-array
```

## 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.1 |
| Published | 2016-12-14 |
| First published | 2016-10-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Thomas Lindstrøm |
| Maintainers | amphibian |

## Links

- npm: https://www.npmjs.com/package/@amphibian/iterate-up-array
- Repository: https://gitlab.com/thomaslindstr_m/iterate-up-array
- Homepage: https://gitlab.com/thomaslindstr_m/iterate-up-array#README
- Issues: https://gitlab.com/thomaslindstr_m/iterate-up-array/issues
- npm.io page: https://npm.io/package/@amphibian/iterate-up-array

## Dependencies (1)

- [@amphibian/iterate-up](https://npm.io/package/@amphibian/iterate-up.md) ^2.0.2

## Recent versions

- 1.0.1 (latest) — 2016-12-14
- 1.0.0 — 2016-10-13

## README

# iterate-up-array

[![build status](https://gitlab.com/thomaslindstr_m/iterate-up-array/badges/master/build.svg)](https://gitlab.com/thomaslindstr_m/iterate-up-array/commits/master)

while loop abstraction for looping up through indices from 0 to Array.length

```
npm install @amphibian/iterate-up-array
```

```javascript
var iterateUpArray = require('@amphibian/iterate-up-array');
var array = ['zero', 'one', 'two'];

// Iterate from the first index to the last
iterateUpArray(array, function (index, i) {
    console.log(index, i); // zero 0, one 1, two 2
});

// Iterate from the first index to the last, but stop if the key is `one`
var question = iterateUpArray(array, function (index, i, end) {
    console.log(index, i); // zero 0, one 1

    if (index === 'one') {
        end('hola que hora es');
    }
});

console.log(question); // > hola que hora es
```

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