JSFiddle - React, Tailwind, and code Playground
JavaScript
objs = [];
for (var i = 0; i < 5; i++) {
objs.push({
i: i
});
}
for (var objI in objs) {
var obj = objs[objI];
console.log(obj);
var newObj = Object.create(obj., {
j: objI
});
}
console.log(objs);