News for hackers. Stuff that matters.
Re:All About Recursion and Tail Calls in JavaScript by holmberd on Saturday May 13, 2017 @11:47AM (#14331518)
Until ES6 which introduces Tail Call Optimization, you can use trampolines.

Small summary code: http://paste.ubuntu.com/24568118/

Re:All About Recursion and Tail Calls in JavaScript by devrandomguy on Saturday May 13, 2017 @12:11PM (#14331637)
Trampoline would make a nice addition to Ramda. Unless I'm missing it under an unexpected name?

http://ramdajs.com/