# feach

> for each for objects and arrays, with context

Latest version **1.0.0** (published 2014-12-15) · ISC license · 0 weekly downloads

## Install

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

## 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 | 2014-12-15 |
| First published | 2014-12-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Fergus Ruston |
| Maintainers | ergusto |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2014-12-15

## README

for each for objects and arrays, with context

```javascript
var obj = {
    fergus: 'is a name',
    tom: 'is also a name',
    jim: 'not so much...'
}
var array = ['fergus', 'tom', 'jim'];

feach(array, function(thing, i) {
    console.log(thing, this[thing]);
}, obj); 

feach(obj, function(property, value) {
    console.log('property', property);
    console.log('has the value', value);
});

// logs

fergus is a name
tom is also a name
jim not so much...
property fergus
has the value is a name
property tom
has the value is also a name
property jim
has the value not so much...
```

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