Hacker Newsnew | past | comments | ask | show | jobs | submit | ikessler's commentslogin

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.


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: