This is my current code:
const fn = parameter => { // if, else ... fn(X); }; fn(0);
Now, I can\'t use this approach as I need to cal
JavaScript provides a great solution for recursive functions: named function expressions. Hence I would recommend to use that instead of an arrow function:
(function fn(parameter) { // if, else ... fn(x); })(0);