The Javascript Int8Array join()
method converts all elements of an array into a string.
This method works the same as Array.prototype.join()
.
Int8Array.join([separator = ',']);
Parameter | Optional | Meaning |
---|---|---|
separator | Optional | a string to separate each element. |
If omitted, the typed array elements are separated with a comma (",").
var uint8 = new Int8Array([1,2,3]); let a = uint8.join(); console.log(a);/* w w w .ja va2 s .c o m*/ a = uint8.join(' / '); console.log(a); a = uint8.join(''); console.log(a);