Message from JavaScript discussions

April 2017

— The tuple looks like this on the inside:

{original: [Object], search: [Object]}

and anything added to this will go to two places: 1 being a map of known nodes, and 2 being a stack which the iddfs uses for navigation

Message permanent page


Which means... if the node is encountered again, say because multiple properties refer to it, then the tuple that was added when the node was first encountered will then be supplied back to the caller

— I am also a woman :D Hello

— Not a lot of us in these groups, lol

— Are you at school for it or self learning?

— I highly reccomend taking advantage of all MDN has to offer here:

Message permanent page

— No problem :>

— Sure

— This is amazing, albeit very abstract, what are you using this for?

— Plugging algorithms into a generic traversal function

— This is a clone algo:
it talks to the big daddy here:

Message permanent page

— Since there is no recursion, this can work on very large objects