vivin.net
Anonymous self-invoked recursive-function in Javascript
I needed to do an n-ary tree traversal recently with some Javascript code that I’m working on and I initially wrote an iterative n-ary tree-traversal algorithm (using a node stack with a whil…