title: Move zeroes in array using ES6 features
body: <p>I’m new to ES6, trying to make a function that moves all zeros in the array in the last position of the array while preserving the original order of the array
  E.g. <code>[1,0,0,0,2,3,4,5]</code> => <code>[1,2,3,4,5,0,0,0]</code></p>
  
  <pre><code> function moveZeros (arr) {
    let zeroArr = [];
      for(let i = 0;i &lt; arr.length;i++) {
      if (arr[i] == 0) {
       zeroArr.push(arr[i]);
       arr.splice(i, 1);
      }
    }
    arr.push(...zeroArr);
    return arr;
  } 
  </code></pre>
  
  <p>This is my code its works fine, but I think this can be shorter more in using some ES6 features. Can someone provide a better solution</p>