title: How to join all elements in array except first one?
body: <p>I have a phone number as a string as &quot;+22 123 234 22&quot;. I am trying to format as &quot;+22 12323422&quot;. Below is a code I am trying. But, the length of the string array won't be constant. What would be the ideal way to do it?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var x = "+12 123 344 22";
  var y = x.split(" ");
  var z = y[0] + " " + y[1] + y[2] + y[3];
  console.log(z);</code></pre>
  </div>
  </div>
  </p>
  <p>I know I can use a for loop to achieve this as below. But I am looking for something from array methods like &quot;Skip()&quot; in C#.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>    var x = "+12 123 344 22";
      var y = x.split(" ");
      var t = y[0]+" ";
      
      for(var a=1; a&lt;y.length; a++){
      t+=y[a];
      }
      
      var z = y[0] + " " + y[1] + y[2] + y[3];
      console.log(t);</code></pre>
  </div>
  </div>
  </p>