how to split an array into anther paired array
<p>I want a very simple feature, I hope use short and beautiful code to do below</p>

<p>input:</p>

<pre><code>[1,2,3,4,5,6,7,8,9,10]
</code></pre>

<p>output:</p>

<pre><code>[[1,2],[3,4],[5,6],[7,8],[9,10]]
</code></pre>

<p>how to do this in javascript</p>
