# @f/foreach

> Fast for each.

Latest version **1.2.2** (published 2016-01-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @f/foreach
pnpm add @f/foreach
yarn add @f/foreach
bun add @f/foreach
```

## 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.2.2 |
| Published | 2016-01-07 |
| First published | 2015-12-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | f |

## Links

- npm: https://www.npmjs.com/package/@f/foreach
- Repository: https://github.com/micro-js/foreach
- Issues: https://github.com/micro-js/foreach/issues
- npm.io page: https://npm.io/package/@f/foreach

## Dependencies (4)

- [@f/is-array](https://npm.io/package/@f/is-array.md) ^1.1.1
- [@f/is-object](https://npm.io/package/@f/is-object.md) ^1.1.1
- [@f/foreach-obj](https://npm.io/package/@f/foreach-obj.md) ^1.0.1
- [@f/foreach-array](https://npm.io/package/@f/foreach-array.md) ^1.0.0

## Recent versions

- 1.2.2 (latest) — 2016-01-07
- 1.2.1 — 2015-12-16
- 1.2.0 — 2015-12-16

## README

# foreach

[![Build status][travis-image]][travis-url]
[![Git tag][git-image]][git-url]
[![NPM version][npm-image]][npm-url]
[![Code style][standard-image]][standard-url]

Fast for each.

## Installation

    $ npm install @f/foreach

## Usage

```js
var forEach = require('@f/foreach')

var obj = {a: 1, b: 2}
var copy = {}

forEach(function (val, key) {
  copy[key] = val
}, obj)

copy // => {a: 1, b: 2}

```

## API

### foreach(fn, obj)

- `fn` - iterator
- `obj` - object to iterate over

## License

MIT

[travis-image]: https://img.shields.io/travis/micro-js/foreach.svg?style=flat-square
[travis-url]: https://travis-ci.org/micro-js/foreach
[git-image]: https://img.shields.io/github/tag/micro-js/foreach.svg
[git-url]: https://github.com/micro-js/foreach
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat
[standard-url]: https://github.com/feross/standard
[npm-image]: https://img.shields.io/npm/v/@f/foreach.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@f/foreach

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