visit-values
v2.0.0
Published
visit all the children of a javascript object
Downloads
135,030
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
var visit = require('visit-values')
var object = { a: { b: 'c' }}
// prints 'c'
visit(object, function(value, key, parent) {
console.log(value)
})