"Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearPR

Is there any way to write an infinitely recursive function in JS without exceeding the call stack?

I wrote a Node script for work that takes 24 hours to complete (lots of 2 minute timeouts) and I'd like it to just restart at its end and begin again. I suppose I could just write a chron job for it on whatever VM we end up running it on if this isn't possible.

4
2
Comments 2