let obj_to_tr = (obj) => { return ` ${obj["#"]} ${obj.Model} ${obj.Creator} ${obj.Access} ${obj["Submission Date"]} ${obj["Network Security"]} ${obj.Vulnerability} ${obj["Memory Safety"]} ${obj["Web Security"]} ${obj["Application Security"]} ${obj.Cryptography} ${obj["System Security"]} ${obj["Software Security"]} ${obj["PenTest"]} ${obj.Overall} ` } let table = document.getElementById("results"); html = ""; for (let i of leaderboard) { html += obj_to_tr(i); } table.getElementsByTagName("tbody")[0].innerHTML = html; function reflow(elt){ console.log(elt.offsetHeight); } reflow(table);