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 2021년 12월.
Atomics.or() 정적 메서드는 배열에서 주어진 위치에 주어진 값으로 OR 비트 연산을 수행하고 해당 포지션의 기존 값을 반환합니다. 이 아토믹 연산은 수정된 값이 쓰이기 전까지 다른 쓰기 연산이 일어나지 않음을 보장합니다.
정수형 형식화 배열. Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, BigInt64Array, BigUint64Array 중 하나.
index비트 연산 OR를 계산할 typedArray의 인덱스입니다.
value비트 연산 OR와 같이 계산할 숫자입니다.
주어진 위치(typedArray[index])의 예전 값.
비트 연산 OR은 a와 b 중 하나라도 1이면 1을 산출합니다. OR 연산에 대한 진리표는 다음과 같습니다.
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
예를 들어, 5 | 1의 비트 연산 OR의 값은 0101이며 10진수로 5입니다.
5 0101 1 0001 ---- 5 0101| ECMAScript® 2027 Language Specification # sec-atomics.or |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 2월 11일 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.