title: Sum all integers in a multidimensional array javascript
body: <p>Let's say I have this:</p>
  
  <pre><code>function arrSum(){
    *code here*
  }
  </code></pre>
  
  <p>How do I write the arrSum function such that it can sum all the integers within a multidimensional array (of variable depth).</p>
  
  <p>I.e.</p>
  
  <pre><code>arrSum([2, 5, [4, 6], 5]) === 22;
  </code></pre>
  
  <p>I know there must be an answer to this somewhere but I really can't find it. If this is a duplicate please let me know.</p>