That shunts the iterator protocol into a callback interface. Otherwise you can talk to the traversal algorithm directly via: var traversal = iddfs(object); var iteration = traversal.next(); var flyweight = iteration.value;
— Do you write react as well?
— Do you write react?
— It should not
— Why would it make a difference
— There is a nodeMap which lets it remember when it saw an object before and it will not traverse into it again