# yiwn-each

> Array / object / string iteration utility

Latest version **0.3.0** (published 2015-01-30) · MIT license · 0 weekly downloads

## Install

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

## 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.3.0 |
| Published | 2015-01-30 |
| First published | 2015-01-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | antaranian |

## Links

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

## Dependencies (1)

- [component-type](https://npm.io/package/component-type.md) ^1.1.0

## Recent versions

- 0.3.0 (latest) — 2015-01-30

## README

# each

  Array / object / string iteration utility.

## Installation

Install with [component](http://component.github.io):

    $ component install yiwn/each

Install with [npm](https://www.npmjs.org/) for [browserify](http://browserify.org/):

    $ npm install yiwn-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(val, key){
  
})
```

  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/yiwn-each · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
