Function js_sys::Atomics::store

source ·
pub fn store(
    typed_array: &JsValue,
    index: u32,
    value: i32
) -> Result<i32, JsValue>
Expand description

The static Atomics.store() method stores a given value at the given position in the array and returns that value.

You should use store_bigint to operate on a BigInt64Array or a BigUint64Array.

MDN documentation