Is it possible to use a higher order javascript function to resize single dimension array into a multi-dimensional array (i.e. 1x6 to 2x3) or do i have to work around with for loops?
Do you have any code examples to resize [0,1,2,3,4,5]
to [[0,1,2],[3,4,5]]
?