title: Partitioning in JavaScript
body: <p>Please consider an array such as :</p>
  
  <pre><code>arrayAll = [1,2,3,4,5,6,7,8,9]
  </code></pre>
  
  <p>Is there a package that enable to do partitioning to obtain :</p>
  
  <pre><code>arrayALLPartionned = [[1,2,3],[4,5,6],[7,8,9]]
  </code></pre>
  
  <p>I can see how to do this with a for loop but would appreciate a "pre-made" function if existing.</p>