Ad
  • Custom User Avatar

    Generally you'd want to avoid recursion in JS since it functions by adding additional calls to the callstack and that can cause a crash if the input is large enough. As far as writing production code goes I've only ever used recursion a couple of times to traverse tree like structures. Hope this helps!