how can I call a recursive function that calls more than 50k times in javascript?
<p><br>
I know the Browser Javascript Stack size limit, but is there any way to break it? while I am reading <a href="https://stackoverflow.com/questions/7826992/browser-javascript-stack-size-limit">Javascript Stack size limit</a> in net, I can not find a way to overcome the browser Stack size limit. Is there any tricks to do it in java-script or angular.</p>

<p>for example </p>

<pre><code>var i=0;
rec(para);
function rec(para){
          if(para&gt;=50000){

          }
          else{
            $scope.items.push(i);
            rec(i++)
          }

    }
</code></pre>

<p>is it possible to add 50000 data into an array..</p>