SafeRec is a simple but powerful trampoline which converts your recursive function into a fast and safe while
loop.
You can read more about why you should adopt memory safe recursion here
Installation
Yarn
yarn add saferec
NPM
npm install saferec --save-dev
Usage
{ return num === 0 ? 1 : num * ;} const result = ;