Javascript Uint16Array reverse()

Introduction

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

Uint16Array.reverse();
var uint8 = new Uint16Array([1, 2, 3]);
uint8.reverse();//from w w  w. java2s.  c om

console.log(uint8); // Uint16Array [3, 2, 1]



PreviousNext

Related