var arr = [ 1,5,1,7,5,9];
Math.max(...arr) // 9
[...new Set([2,"12",2,12,1,2,1,6,12,13,6])]
// [2, "12", 12, 1, 6, 13]
var arr = [ 1,5,1,7,5,9];
Math.max(...arr) // 9
[...new Set([2,"12",2,12,1,2,1,6,12,13,6])]
// [2, "12", 12, 1, 6, 13]