Javascript Array Group Duplikate
[2,7,65,9,4,2]
Yellowed Yacare
[2,7,65,9,4,2]
//ascending order
console.log([1, 2, 0, 1].sort((a, b) => a - b))
//descending order
console.log([1, 2, 0, 1].sort((a, b) => b - a))
Run code snippetHide results