How can I add an object to a new empty array, in a specific index.
Let's say "0"
I have a forEach loop and I build an object with it
var array = [];
var myObject = {
value1: value1,
value2: value2
};
I can generate as many "myObject" as the times the forEach loops
How can I add all those "myObject" into "array" on the index "0"?