HNHacker News
TopNewBestAskShowJobs

ikessler

116 karma · joined June 28, 2014

there is a difference between knowing the path and walking the path
submissionscomments
ikessler··on Show HN: Node.js visit values util
The use case is quite simple, I want to iterate over all values in an object (and possibly manipulate it, that is why the visitor function has access to the parent)

Array members will be visited individually.

The entire object tree will be visited in a depth first order

hope that answers your questions.