title: Function that returns the sum of all numbers passed in arguments
body: <p>I need help. Can you help me to solve this task.</p>
  
  <blockquote>
    <p>Write the function that returns the summ of all numbers even string numbers that are passed as arguments and the amount of these numbers is unlimited.
    If one of the parameters is an array, then
    Sum is also added to the sum of the values of this array (if any of the
    Values of this array is also an array, then the result is added
    Also the sum of its values, and so on).</p>
  </blockquote>
  
  <pre><code>var sum = getSum (1, '1', 'one', [2, '2', 'two']);
  console.log(sum);
  </code></pre>
  
  <p>I've tried to write something like this:</p>
  
  <pre><code>function getSum(){
      var separeted = string.split(",");
      var sum =0; 
      for(var i=0;i&lt;arguments.length;i++){
  
          sum += parseInt(arguments[i].toString()..match(/(\d+)/));
  
      }
     return sum;
  }
  var sum = getSum(1,"1","one",[2,'2', 'two']);
  console.log(sum);
  </code></pre>
  
  <p>and here I've stacked. I think that I will need split and filter but how to combine that all in one function I can't find.
  Thanks.</p>