How to split array into three arrays by index? : <p>I have an array of 9 elements(maybe more).
I need to split by indexes into three arrays.</p>

<pre><code>const array = [{id: 0}, {id: 1}, ..., {id: 8}];
</code></pre>

<p>I want to recieve 3 array like that:</p>

<pre><code>const array0 = [{id: 0}, {id: 3}, {id: 6}];
const array1 = [{id: 1}, {id: 4}, {id: 7}];
const array2 = [{id: 2}, {id: 5}, {id: 8}];
</code></pre>
