An open API service indexing awesome lists of open source software.

https://github.com/kessler/node-visit-values

visit all the values of a javascript object
https://github.com/kessler/node-visit-values

Last synced: about 2 months ago
JSON representation

visit all the values of a javascript object

Awesome Lists containing this project

README

        

# visit values

Visit all values in an object, depth first order.

Array members will be visited individually as well.

### install
npm install --save visit-values

### usage
```javascript
var visit = require('visit-values')
var object = { a: { b: 'c' }}

// prints 'c'
visit(object, function(value, key, parent) {
console.log(value)
})
```