# iterate-until

> Iteratively invokes a function until condition is met.

Latest version **0.0.1** (published 2015-03-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install iterate-until
pnpm add iterate-until
yarn add iterate-until
bun add iterate-until
```

## 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.1 |
| Published | 2015-03-16 |
| First published | 2015-03-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Miguel Mota |
| Maintainers | miguelmota |
| Keywords | iterate, loop |

## Links

- npm: https://www.npmjs.com/package/iterate-until
- Repository: https://github.com/miguelmota/iterate-until
- Issues: https://github.com/miguelmota/iterate-until/issues
- npm.io page: https://npm.io/package/iterate-until

## Dependencies (1)

- [tape](https://npm.io/package/tape.md) ^3.0.3

## Recent versions

- 0.0.1 (latest) — 2015-03-16

## README

# iterate-until

Iteratively invokes a function until condition is met.

# Install

```bash
npm install iterate-until
```

```bash
bower install iterate-until
```

# Usage

```javascript
var iterateUntil = require('iterate-until');

function addTwo(i) {
  return i + 2;
}

function isLessThanEight(n) {
  return n < 8;
}

var initial = 0;

var result = iterateUntil(isLessThanEight, addTwo, initial);

console.log(result); // [2,4,6]
```

# License

MIT

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