JavaScript
Result
Run
License
function compare(a, b) { return a < b ? -1 : 1; } const uint8 = new Uint8Array([10, 30, 20, 50, 40]); console.log(uint8.sort(compare));
Console
expand_less
License
License
by DevDic
Close