title: Slice Array into an array of arrays
body: <p>If I have a function:</p>
  
  <pre><code>function sliceArrayIntoGroups(arr, size) {
    var slicedArray = arr.slice(0, size);
  
    return slicedArray;
  }
  </code></pre>
  
  <p>I am looking to take an array and slice it into an array of arrays.. how would I go about doing so?</p>
  
  <p>So if I had this:</p>
  
  <pre><code>sliceArrayIntoGroups(["a", "b", "c", "d"], 2);
  </code></pre>
  
  <p>The result should be:</p>
  
  <pre><code>[["a","b"],["c","d"]]
  </code></pre>
  
  <p>But I don't know how to save the second part of the original array after slicing it.</p>
  
  <p>Any help is appreciated.</p>