I have the following JavaScript array of many many objects:
[
{...},
{...},
{...},
.
.
.
.
.
{...},
{...}
]
I would like to transform the array to rows of 3 objects, something like this:
[
[ {...}, {...}, {...} ],
[ {...}, {...}, {...} ],
[ {...}, {...}, {...} ],
.
.
.
[ {...}, {...}, {...} ],
[ {...}, {...}, {...} ]
]
What is the best way to do it?