const uint8 = new Uint8Array([10, 20, 30, 40, 50]);

console.log(uint8.join());
// Expected output: "10,20,30,40,50"

console.log(uint8.join(''));
// Expected output: "1020304050"

console.log(uint8.join('-'));
// Expected output: "10-20-30-40-50"