JSFiddle - React, Tailwind, and code Playground
by Alexander
JavaScript
console.clear();
const arr1 = Array.apply(null,{length:9}).map(Number.call, Number)
const arr2 = [];
while (arr1.length) arr2.push(arr1.splice(0,3));
console.table(arr2)
by Alexander
console.clear();
const arr1 = Array.apply(null,{length:9}).map(Number.call, Number)
const arr2 = [];
while (arr1.length) arr2.push(arr1.splice(0,3));
console.table(arr2)