[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/join [Back]  [Original]

TypedArray.prototype.join() - JavaScript | MDN

MDN Web Docs

View in English Always switch to English

TypedArray.prototype.join()

Baseline

20169

join() TypedArray 1 Array.prototype.join()

const uint8 = new Uint8Array([10, 20, 30, 40, 50]);

console.log(uint8.join());
// : "10,20,30,40,50"

console.log(uint8.join(""));
// : "1020304050"

console.log(uint8.join("-"));
// : "10-20-30-40-50"

js
join()
join(separator)

separator

separator (",")

array.length 0

Array.prototype.join()

join()

js
const uint8 = new Uint8Array([1, 2, 3]);
uint8.join(); // '1,2,3'
uint8.join(" / "); // '1 / 2 / 3'
uint8.join(""); // '123'

ECMAScript 2027 LanguageSpecification
# sec-%typedarray%.prototype.join


Web Proxy Viewer  |  New URL  |  Original Page