| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/with | [Back] [Original] |
Get to know MDN better
arrayInstance.with(index, value)
index value
RangeErrorindex >= array.length index < -array.length
const arr = new Uint8Array([1, 2, 3, 4, 5]);
console.log(arr.with(2, 6)); // Uint8Array [1, 2, 6, 4, 5]
console.log(arr); // Uint8Array [1, 2, 3, 4, 5]
| ECMAScript 2027 LanguageSpecification # sec-%typedarray%.prototype.with |
| Web Proxy Viewer | New URL | Original Page |