The Javascript Uint8Array reverse() method reverses a typed array in place.
reverse()
Uint8Array.reverse();
var uint8 = new Uint8Array([1, 2, 3]); uint8.reverse();//from ww w .j av a 2 s .c om console.log(uint8); // Uint8Array [3, 2, 1]