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
- Host: GitHub
- URL: https://github.com/kessler/node-visit-values
- Owner: kessler
- License: mit
- Created: 2014-07-27T16:54:01.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-11-20T11:22:40.000Z (over 8 years ago)
- Last Synced: 2025-03-08T08:12:40.643Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
})
```