| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/join | [Back] [Original] |
Get to know MDN better
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"
join()
join(separator)
separator separator (",")
array.length 0
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 |