Я хочу создать html таблицу по горизонтали с json данными
need ti display the table as
name John
age 30
let user = {
name: "John",
age: 30
};
//$('#geo_summary tbody').append(
Object.entries(user).reduce((res, row) => {
res.map(x => $('<td>').text(x))
//console.log(res);
});
//);
console.log(Object.entries(user).reduce((res, row) => {
res.map(x => x)
}));
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<table id="geo_summary">
<tbody></tbody>
</table>