Javascript Int16Array reverse()

Introduction

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

Int16Array.reverse();
var uint8 = new Int16Array([1, 2, 3]);
uint8.reverse();/*ww  w  .  j  a v a  2  s  . com*/

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



PreviousNext

Related