# walking

> walk through the object

Latest version **0.1.1** (published 2019-07-10) · MIT license · 0 weekly downloads

## Install

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

## 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.1.1 |
| Published | 2019-07-10 |
| First published | 2016-01-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | waksana |
| Keywords | walk, object |

## Links

- npm: https://www.npmjs.com/package/walking
- Repository: https://github.com/waksana/walking
- Homepage: https://github.com/waksana/walking#readme
- Issues: https://github.com/waksana/walking/issues
- npm.io page: https://npm.io/package/walking

## Recent versions

- 0.1.1 (latest) — 2019-07-10
- 0.1.0 — 2016-09-06
- 0.0.2 — 2016-03-31
- 0.0.1 — 2016-01-15

## README

# walking

walk through the object

遍历对象

## Installation

```
$ npm install walking
```

## Example

```js
var walking = require('walking');

const obj = {a: {c: [1, 'd', undefined]}, b: [{e: {f: ['g']}}, [1, {h:1}, {i:2}]]}

var walk = walking(obj);

//the root object
walk.next() //==> {a: {c: [1, 'd', undefined]}, b: [{e: {f: ['g']}}, [1, {h:1}, {i:2}]]}

//search deeper
walk.next() // ==> {c: [1, 'd', undefined]}
walk.next() // ==> [1, 'd', undefined]
walk.next() // ==> 1

```

## API

### walking(object)

get a generator which yields every piece of an object or array

遍历object对象返回生成器

### walk.next(true)

skip the last returnd value if it is a object

# License

MIT

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