Javascript Uint8Array reverse()

Introduction

The Javascript Uint8Array reverse() method reverses a typed array in place.

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]



PreviousNext

Related