Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2023년 7월.
TypedArray 인스턴스의 with() 메서드는 대괄호 표기법을 사용하여 주어진 인덱스의 값을 변경하는 복사 버전입니다. 이 메서드는 주어진 인덱스의 요소가 주어진 값으로 대체된 새로운 형식화 배열을 반환합니다. 이 메서드는 Array.prototype.with() 메서드와 같은 알고리즘을 가지고 있습니다.
형식화 배열을 변경할 0 기반 인덱스이며 정수로 변환되는 값입니다.
value주어진 인덱스에 할당할 모든 값.
index의 요소 값이 value로 대체된 새로운 형식화 배열.
index >= array.length 혹은 index < -array.length일때 발생합니다.
보다 상세한 설명은 Array.prototype.with()를 참고하시기 바랍니다. 이 메서드는 제네릭이 아니며 형식화 배열 인스턴스에서만 호출할 수 있습니다.
| ECMAScript® 2027 Language Specification # sec-%typedarray%.prototype.with |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2024년 6월 30일 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.