# neach

> It’s like forEach, but nested.

Latest version **1.0.0** (published 2018-04-16) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2018-04-16 |
| First published | 2018-04-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 1 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | John Lamansky |
| Maintainers | lamansky |
| Keywords | array, nested, each, forEach, loop |

## Links

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

## Dependencies (1)

- [vfn](https://npm.io/package/vfn.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2018-04-16

## README

# neach

It’s like `.forEach()`, but nested.

## Installation

Requires [Node.js](https://nodejs.org/) 6.0.0 or above.

```bash
npm i neach
```

## API

The module exports a single function.

### Parameters

1. Variadic: `...iterables` (one or more of: iterable): The levels of the nested each-loop.
2. `cb` (function): A callback which is given one argument for each iterable.

### Return Value

None.

## Example

### Before

```javascript
for (const message of ['Hello', 'Goodbye']) {
  for (const whom of ['world', 'Dolly']) {
    for (const punc of ['.', '!']) {
      console.log(message + ', ' + whom + punc)
    }
  }
}
```

### After

```javascript
const neach = require('neach')

neach(['Hello', 'Goodbye'], ['world', 'Dolly'], ['.', '!'], (message, whom, punc) => {
  console.log(message + ', ' + whom + punc)
})
```

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