# each-component

> Array / object / string iteration utility

Latest version **0.1.0** (published 2014-01-21) · 0 weekly downloads

## Install

```sh
npm install each-component
pnpm add each-component
yarn add each-component
bun add each-component
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-01-21 |
| First published | 2012-09-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | tjholowaychuk, ianstormtaylor |

## Links

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

## Dependencies (2)

- [to-function](https://npm.io/package/to-function.md) *
- [type-component](https://npm.io/package/type-component.md) *

## Recent versions

- 0.1.0 (latest) — 2014-01-21
- 0.0.1 — 2012-09-21

## README

# each

  Array / object / string iteration utility.

## Installation

    $ component install component/each

## API

### each(array, fn[, ctx])

  Iterate an array:

```js
each([1,2,3], function(num, i){
  
})
```

  Optionally pass a context object:

```js
each([1,2,3], function(num, i){

}, this)
```

### each(object, fn[, ctx])

  Iterate an object's key / value pairs:

```js
each(conf, function(key, val){
  
})
```

  Iterate an array-ish object (has numeric `.length`):

```js
each(collection, function(val, i){
  
})
```

### each(string, fn[, ctx])

  Iterate a string's characters:

```js
each('hello', function(c, i){
  
})
```

# License

  MIT

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