Javascript Uint8ClampedArray join()

Introduction

The Javascript Uint8ClampedArray join() method converts all elements of an array into a string.

This method works the same as Array.prototype.join().

Uint8ClampedArray.join([separator = ',']);
Parameter Optional Meaning
separator Optionala string to separate each element.

If omitted, the typed array elements are separated with a comma (",").

var uint8 = new Uint8ClampedArray([1,2,3]);
let a = uint8.join();   
console.log(a);/*ww  w. j  av  a 2s  .c om*/
a = uint8.join(' / '); 
console.log(a);
a = uint8.join('');    
console.log(a);



PreviousNext

Related