Recursive Arrow Function

no-email (Damien Seguy), Damien Seguy
Mon, 13 Jun 2022 00:00:00 +0000

To make an arrow function recursive, it must include itself in the list of arguments. That way, it can call itself.
The intriguing point here is that the arrow function is defined based on the current variables, and the function holding variable is only defined after the arrow function.