Skip to main content

store

Function store 

Source
pub fn store<T>(typed_array: &T, index: u32, value: i32) -> Result<i32, JsValue>
where T: ErasableGenericBorrow<Int32Array> + EncodeTypeDef + TypedArray, for<'__wry_bindgen> &'__wry_bindgen T: BinaryEncode,
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