最短代码实现去重
[...new Set([1,"1",2,1,1,3])]
取一个数组中的最大值与最小值
var arrNumbers=[1,3,5,-6,7,-3,5,6];
var maxValue=Math.max.apply(Math,arrNumbers)
[...new Set([1,"1",2,1,1,3])]
var arrNumbers=[1,3,5,-6,7,-3,5,6];
var maxValue=Math.max.apply(Math,arrNumbers)