node js add object to array code example
Example 1: nodejs add element to array
var array = [];
array.push(element)
console.log(array);
Example 2: push object into array javascript
var nietos = [];
var obj = {};
obj["01"] = nieto.label;
obj["02"] = nieto.value;
nietos.push(obj);