Javascript BigUint64Array join()

Introduction

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

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

BigUint64Array.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 BigUint64Array([1n,2n,3n]);
let a = uint8.join();   
console.log(a);//from   w w  w . j a  v a2s  .com
a = uint8.join(' / '); 
console.log(a);
a = uint8.join('');    
console.log(a);



PreviousNext

Related