Skip to content

Instantly share code, notes, and snippets.

@baranovxyz
Created May 9, 2020 21:02
Show Gist options
  • Save baranovxyz/a8c74d2110a547e64f7b6a872c52b668 to your computer and use it in GitHub Desktop.
Save baranovxyz/a8c74d2110a547e64f7b6a872c52b668 to your computer and use it in GitHub Desktop.
const recursiveFn = trampoline(function _recursiveFn(n) {
if (n < 0) return;
return () => _recursiveFn(n - 1);
});
recursiveFn(100000);
console.log('No range error!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment