Javascript Uint8ClampedArray reverse()

Introduction

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

Uint8ClampedArray.reverse();
var uint8 = new Uint8ClampedArray([1, 2, 3]);
uint8.reverse();// ww w.ja v  a 2s .c o  m

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



PreviousNext

Related