# @amphibian/for-own

> for...in abstraction to iterate over an objects own keys

Latest version **1.0.14** (published 2017-01-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install @amphibian/for-own
pnpm add @amphibian/for-own
yarn add @amphibian/for-own
bun add @amphibian/for-own
```

## 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.14 |
| Published | 2017-01-28 |
| First published | 2015-10-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Thomas Lindstrom |
| Maintainers | amphibian |

## Links

- npm: https://www.npmjs.com/package/@amphibian/for-own
- Repository: https://gitlab.com/thomaslindstr_m/for-own
- Homepage: https://gitlab.com/thomaslindstr_m/for-own#README
- Issues: https://gitlab.com/thomaslindstr_m/for-own/issues
- npm.io page: https://npm.io/package/@amphibian/for-own

## Dependencies (2)

- [@amphibian/object-keys](https://npm.io/package/@amphibian/object-keys.md) ^1.0.2
- [@amphibian/iterate-up-array](https://npm.io/package/@amphibian/iterate-up-array.md) ^1.0.1

## Recent versions

- 1.0.14 (latest) — 2017-01-28
- 1.0.13 (lerna-temp) — 2016-12-14
- 1.0.12 — 2016-12-14
- 1.0.11 — 2016-12-14
- 1.0.10 — 2016-12-05
- 1.0.9 — 2016-10-13
- 1.0.8 — 2016-09-12
- 1.0.7 — 2016-09-08
- 1.0.6 — 2016-02-12
- 1.0.5 — 2015-11-02
- 1.0.4 — 2015-10-21
- 1.0.3 — 2015-10-21

## README

# for-own

[![build status](https://gitlab.com/ci/projects/107891/status.png?ref=master)](https://gitlab.com/ci/projects/107891?ref=master)

for...in abstraction to iterate over an objects own keys

```
npm install @amphibian/for-own
```

```javascript
var forOwn = require('@amphibian/for-own');
var object = {
    foo: 'bar',
    bar: 'foo'
};

// Iterate over object keys and values
forOwn(object, function (key, value) {
    console.log(key, value);
});

// Iterate over object keys, but stop if the key is `foo`
var question = forOwn(object, function (key, value, end) {
    console.log(key, value);

    if (key === 'foo') {
        end('hola que hora es');
    }
});

console.log(question); // > hola que hora es
```

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