Im a bit new to javascript and my goal is to take every 3 elements in my array and store them as an array to be pushed to another array. Below is what this would look like
var a = [11, 2, 3, 4, 5, 6, 7, 8, 9, 2, 2, 3, 4, 5, 4];
Output would be
var arrays = [[11, 2, 3], [4, 5, 6], [7, 8, 9], [2, 2, 3], [4, 5, 4]]
These are just integers, but in my application, there is an array containing 73 objects which id like to store like this.
var objects = [{}, {}, {}], [{}, {}, {}] ,,,]
would there be any problems based on the number of objects as 73 is not divisible by three