I'm trying to build an array of javascript objects based on a variable that also has objects like this:
time #1:
console.log(obj_initial);
//{ evt1 : 'value1', evt2 : 'value2', evt3 : 'value3' }
This variable change theirs properties in the time.
time #2:
console.log(obj_initial);
//{ evtA : 'value9', evtB : 'value8', evtC : 'value7', evtD : 'value6' }
How do I build an array of objects? like this:
obj_final = [
{
evt1 : 'value1',
evt2 : 'value2',
evt3 : 'value3' },
{
evtA : 'value9',
evtB : 'value8',
evtC : 'value7',
evtD : 'value6'},
{
...
}]
Anyone please.. thanks in advance.