Hi,
i need the max value of a table Column.
I tried:
{{
function(){
var data = Tablehistory.tableData.map(o => o.POSTDATE);
var max = Math.max(data);
return max;
}
()}}
the values of “data” is:
[
1608046722427,
1637580142400,
1637580142400,
1652892338417,
1652892338417,
1608046722427,
1608046722427,
1608046722427,
1637580142400,
1637580142400,
1637580142400,
1652892338417,
1652892338417,
1608046722427,
1608046722427,
1608046722427,
1608046722427,
1637580142400,
1637580142400
]
But max result is “NaN”
Still JavaScript hates me
Can anyone help me ?
thx
Franz