let obj = { name: 'Bob' };
let arr = [{ name: 'John' }];
// add obj to array
arr = [...arr, obj];
console.log(arr) // [{ name: 'Bob' }, { name: 'John' }];
var nietos = [];
var obj = {};
obj["01"] = nieto.label;
obj["02"] = nieto.value;
nietos.push(obj);
var object = "Some Object"
var array = []
array.push(object)