SiteCrafting Blah Blah Blog
Jan. 4, 2008 at 3:21pm
Anonymous Recursion with JavaScript
A new way of solving an old problem
A nice feature of JavaScript is that functions are objects. As such, they do not need a name if they are used right away. But what if you need a short anonymous recursive function? arguments.callee becomes your new best friend.
Read moreComments (0) | Posted in Coding Techniques, Javascript by Paul Sayre