JSFiddle - React, Tailwind, and code Playground
HTML
<div></div>
JavaScript
$(function () {
var obj = [{'id': 0},{'id': 1},{'id': 2}];
var output = '';
for (property in obj) {
property = parseInt(property)+1+",";
output += property;
}
alert(output);
});