file
stringlengths
16
94
text
stringlengths
32
24.4k
vector
list
javascript/reference/global_objects/atomics/or/index.md
JavaScript - Global Objects - Atomics - or - Syntax - Return value: The old value at the given position (`typedArray[index]`).
[ 0.5131169557571411, -0.33456048369407654, -0.9380612373352051, -0.478303462266922, -0.6034210324287415, -2.188734292984009, 0.39049041271209717, 1.204302191734314, -0.09769367426633835, 0.18531042337417603, -0.6713351607322693, 0.32023873925209045, -0.44291621446609497, 0.880667507648468, ...
javascript/reference/global_objects/atomics/or/index.md
JavaScript - Global Objects - Atomics - or - Syntax - Exceptions: - `TypeError`: Thrown if `typedArray` is not one of the allowed integer types. - `RangeError`: Thrown if `index` is out of bounds in the `typedArray`.
[ 0.07786126434803009, -0.4195653796195984, -0.13762247562408447, 0.36521926522254944, -0.22183141112327576, -2.2740795612335205, -0.6080067157745361, 0.7592004537582397, -0.10107806324958801, -0.1495179384946823, -0.6815014481544495, -0.21647074818611145, -0.5725754499435425, -0.56475806236...
javascript/reference/global_objects/atomics/or/index.md
JavaScript - Global Objects - Atomics - or - Description: The bitwise OR operation yields 1, if either `a` or `b` are 1. The truth table for the OR operation is: - `a`: 0, `b`: 0, `a | b`: 0 - `a`: 0, `b`: 1, `a | b`: 1 - `a`: 1, `b`: 0, `a | b`: 1 - `a`: 1, `b`: 1, `a | b`: 1 For example, a bitwise OR of `5 | 1` re...
[ 0.33892473578453064, 0.4955046772956848, -1.3924192190170288, 0.10662072896957397, 0.08948370069265366, -1.5688632726669312, -0.12553267180919647, 1.3290410041809082, 0.49208155274391174, 0.3957013189792633, -1.2042711973190308, -0.9586398005485535, 0.30135664343833923, 0.14356495440006256...
javascript/reference/global_objects/atomics/or/index.md
JavaScript - Global Objects - Atomics - or - Examples: Note that these examples cannot be run directly from the console or an arbitrary web page, because `SharedArrayBuffer` is not defined unless its security requirements are met.
[ 0.8386191725730896, 0.5346293449401855, -1.479010820388794, -0.275058388710022, -0.9001030325889587, -0.6274240016937256, 0.6393046379089355, 0.2490282952785492, 0.24166366457939148, -0.4322354197502136, 0.06765647977590561, 0.07008079439401627, -0.6282051801681519, -0.6589813232421875, ...
javascript/reference/global_objects/atomics/or/index.md
JavaScript - Global Objects - Atomics - or - Examples - Using Atomics.or(): Example: // Create a SharedArrayBuffer with a size in bytes const sab = new SharedArrayBuffer(1024); // Create a view and set the value of the 0 index const ta = new Uint8Array(sab); ta[0] = 7; // 7 (0111) OR 10 (1010) = 15 (1111) console.lo...
[ 0.44323617219924927, 0.2689630389213562, -0.9442764520645142, 0.4519790709018707, 0.0017904778942465782, -1.5880024433135986, 0.3579963743686676, 0.0955907553434372, 0.7583696246147156, 0.17047280073165894, -0.26862990856170654, -0.2587015926837921, -0.18411922454833984, -0.479070216417312...
javascript/reference/global_objects/atomics/waitasync/index.md
JavaScript - Global Objects - Atomics - waitAsync: The `Atomics.waitAsync()` static method verifies that a shared memory location contains a given value, immediately returning an object with the `value` property containing the string `"not-equal"` if the memory location does not match the given value, or `"timed-out"`...
[ 0.17043671011924744, 0.1404426544904709, -0.5763469338417053, -0.19304704666137695, -0.469283789396286, -1.6571463346481323, 0.5669385194778442, 0.5863264799118042, -0.2210913598537445, 0.44234326481819153, -0.17634402215480804, -0.30294668674468994, 0.4768713116645813, 1.0404644012451172,...
javascript/reference/global_objects/atomics/waitasync/index.md
JavaScript - Global Objects - Atomics - waitAsync - Syntax: Example: Atomics.waitAsync(typedArray, index, value) Atomics.waitAsync(typedArray, index, value, timeout)
[ 0.5054616332054138, 0.32681187987327576, -0.43453747034072876, -0.05954090133309364, -0.8829954862594604, -1.3210117816925049, -0.3954954445362091, 1.1841634511947632, 0.04236866161227226, -0.05508216470479965, 0.06467323005199432, -0.5332865118980408, -0.022187333554029465, 0.144363626837...
javascript/reference/global_objects/atomics/waitasync/index.md
JavaScript - Global Objects - Atomics - waitAsync - Syntax - Parameters: - `typedArray`: An `Int32Array` or `BigInt64Array` that views a `SharedArrayBuffer`. - `index`: The position in the `typedArray` to wait on. - `value`: The expected value to test. - `timeout` (optional): Time to wait in milliseconds. `NaN` (and v...
[ 0.10582859814167023, -0.19404497742652893, -0.6072313785552979, 0.20255449414253235, -0.4264548420906067, -0.5854668021202087, -0.2807631492614746, 0.9716141223907471, 0.37964239716529846, 0.5928377509117126, -0.5045912265777588, -0.33057981729507446, -0.15321464836597443, 0.44128522276878...
javascript/reference/global_objects/atomics/waitasync/index.md
JavaScript - Global Objects - Atomics - waitAsync - Syntax - Return value: An `Object` with the following properties: - `async`: A boolean indicating whether the `value` property is a `Promise` or not. - `value`: If `async` is `false`, it will be a string which is either `"not-equal"` or `"timed-out"` (only when the ...
[ -0.6000229120254517, 0.5022879838943481, -0.0887426808476448, -0.12753936648368835, -0.7634460926055908, -1.0683808326721191, 0.894036054611206, 1.1883835792541504, -0.5584897994995117, 0.5447494983673096, -0.5702089667320251, 0.45902276039123535, -0.43626630306243896, 1.2844732999801636, ...
javascript/reference/global_objects/atomics/waitasync/index.md
JavaScript - Global Objects - Atomics - waitAsync - Syntax - Exceptions: - `TypeError`: Thrown if `typedArray` is not an `Int32Array` or `BigInt64Array` that views a `SharedArrayBuffer`. - `RangeError`: Thrown if `index` is out of bounds in the `typedArray`.
[ -0.3509496748447418, 0.06144723296165466, -0.45352664589881897, 0.2894061207771301, -0.3960723578929901, -0.6776796579360962, -0.8751778602600098, 0.8474772572517395, -0.011835627257823944, 0.024702806025743484, -0.23983822762966156, -0.29116421937942505, -0.15752090513706207, 0.1476037651...
javascript/reference/global_objects/atomics/waitasync/index.md
JavaScript - Global Objects - Atomics - waitAsync - Examples: Note that these examples cannot be run directly from the console or an arbitrary web page, because `SharedArrayBuffer` is not defined unless its security requirements are met.
[ 0.582874596118927, 0.8298515677452087, -1.4994817972183228, -0.08607828617095947, -0.9730960726737976, -0.04019172117114067, 0.5681042075157166, 0.5907778739929199, 0.06821052730083466, -0.16358347237110138, 0.1642053872346878, 0.04690675064921379, -0.5500593185424805, -0.40374621748924255...
javascript/reference/global_objects/atomics/waitasync/index.md
JavaScript - Global Objects - Atomics - waitAsync - Examples - Using Atomics.waitAsync(): Given a shared `Int32Array`: Example: // Create a SharedArrayBuffer with a size in bytes const sab = new SharedArrayBuffer(1024); const int32 = new Int32Array(sab); A reading thread is sleeping and waiting on location 0 which ...
[ 0.4815419018268585, 0.7195468544960022, -0.4646731913089752, -0.09899575263261795, -0.16256402432918549, -0.88966965675354, -0.2705567181110382, 0.842706024646759, 0.2725013792514801, 0.40427544713020325, -0.08214305341243744, -0.23678357899188995, -0.062046900391578674, 0.4683600962162018...
javascript/reference/global_objects/atomics/compareexchange/index.md
JavaScript - Global Objects - Atomics - compareExchange: The `Atomics.compareExchange()` static method exchanges a given replacement value at a given position in the array, if a given expected value equals the old value. It returns the old value at that position whether it was equal to the expected value or not. This ...
[ -0.1499842256307602, -0.5164994597434998, -1.0715574026107788, 0.1882050484418869, 0.05505247786641121, -2.386835813522339, 1.005752444267273, 1.2872568368911743, 0.275077223777771, 0.09861324727535248, -0.2549138069152832, -0.7254142165184021, 0.025647716596722603, 0.1311739683151245, -...
javascript/reference/global_objects/atomics/compareexchange/index.md
JavaScript - Global Objects - Atomics - compareExchange - Syntax: Example: Atomics.compareExchange(typedArray, index, expectedValue, replacementValue)
[ 0.4242238998413086, -0.2792307436466217, -0.8818531632423401, -0.1634262353181839, -0.6387954354286194, -2.369983196258545, 0.0774267315864563, 1.0110926628112793, 0.4074547290802002, -0.515927255153656, -0.15788549184799194, -0.8943337798118591, -0.36731386184692383, 0.10695306211709976, ...
javascript/reference/global_objects/atomics/compareexchange/index.md
JavaScript - Global Objects - Atomics - compareExchange - Syntax - Parameters: - `typedArray`: An integer typed array. One of `Int8Array`, `Uint8Array`, `Int16Array`, `Uint16Array`, `Int32Array`, `Uint32Array`, `BigInt64Array`, or `BigUint64Array`. - `index`: The position in the `typedArray` to exchange a `replacement...
[ 0.2099771648645401, -0.3052678406238556, -0.7797710299491882, 0.5044618844985962, 0.7369247674942017, -0.8226730823516846, 0.11835991591215134, 0.8794005513191223, 0.3037889301776886, 0.306665301322937, -0.30459603667259216, 0.18001142144203186, -0.4575771987438202, 0.33749833703041077, ...
javascript/reference/global_objects/atomics/compareexchange/index.md
JavaScript - Global Objects - Atomics - compareExchange - Syntax - Return value: The old value at the given position (`typedArray[index]`). If the return value is equal to `expectedValue`, the exchange was successful; otherwise, the exchange failed.
[ 0.27264440059661865, -0.2416403442621231, -0.9090679287910461, 0.06640291213989258, -0.15995652973651886, -1.1011244058609009, 0.4460204839706421, 1.1480765342712402, -0.31742173433303833, 0.5949607491493225, -0.6224356889724731, 0.06569215655326843, -0.1788860410451889, 1.045855164527893,...
javascript/reference/global_objects/atomics/compareexchange/index.md
JavaScript - Global Objects - Atomics - compareExchange - Syntax - Exceptions: - `TypeError`: Thrown if `typedArray` is not one of the allowed integer types. - `RangeError`: Thrown if `index` is out of bounds in the `typedArray`.
[ 0.06868691742420197, -0.30601999163627625, -0.44704103469848633, 0.33536890149116516, -0.12330660223960876, -1.828088641166687, -0.5090374946594238, 0.9460791349411011, -0.08928369730710983, -0.10813447833061218, -0.5053594708442688, -0.21325364708900452, -0.6196727752685547, -0.5467881560...
javascript/reference/global_objects/atomics/compareexchange/index.md
JavaScript - Global Objects - Atomics - compareExchange - Examples: Note that these examples cannot be run directly from the console or an arbitrary web page, because `SharedArrayBuffer` is not defined unless its security requirements are met.
[ 0.7033540606498718, 0.568169891834259, -1.690084457397461, -0.04326597973704338, -0.6861106157302856, -0.46058961749076843, 0.866899311542511, 0.25843867659568787, 0.13835707306861877, -0.10318959504365921, 0.04613529145717621, -0.10695722699165344, -0.6261596083641052, -0.4377441108226776...
javascript/reference/global_objects/atomics/compareexchange/index.md
JavaScript - Global Objects - Atomics - compareExchange - Examples - Using Atomics.compareExchange(): Example: // Create a SharedArrayBuffer with a size in bytes const sab = new SharedArrayBuffer(1024); // Create a view and set the value of the 0 index const ta = new Uint8Array(sab); ta[0] = 7; console.log(Atomics.c...
[ 0.465030312538147, 0.14987222850322723, -1.3061110973358154, 0.58354252576828, 0.1118088960647583, -1.689842939376831, 0.39741089940071106, 0.40912553668022156, 0.5970995426177979, 0.3239305913448334, -0.05953415483236313, -0.45065927505493164, -0.2584170699119568, -0.38943687081336975, ...
javascript/reference/global_objects/atomics/compareexchange/index.md
JavaScript - Global Objects - Atomics - compareExchange - Examples - Checking the return value: Compare-and-swap guarantees that the new value is calculated based on up-to-date information; if the value had been updated by another thread in the meantime, the write would fail. Therefore, you should check the return val...
[ 0.1959327608346939, 0.05577253922820091, -0.7843884825706482, 0.2527218461036682, 0.19524461030960083, -1.5262762308120728, 1.3565864562988281, 0.9331105351448059, -0.3399414122104645, -0.07255607843399048, -0.453230619430542, -0.5615121126174927, -0.8711621165275574, 0.5922375321388245, ...
javascript/reference/global_objects/atomics/add/index.md
JavaScript - Global Objects - Atomics - add: The `Atomics.add()` static method adds a given value at a given position in the array, and returns the old value at that position. This atomic operation guarantees that no other write happens until the modified value is written back.
[ 0.0078772297129035, 0.02709907665848732, -0.6512966156005859, 0.14459116756916046, -0.1970466822385788, -2.001376152038574, 1.4632006883621216, 0.9589437246322632, 0.2406855970621109, -0.16003429889678955, -0.7040063142776489, -0.6371278166770935, -0.19787070155143738, -0.09033571183681488...
javascript/reference/global_objects/atomics/add/index.md
JavaScript - Global Objects - Atomics - add - Syntax: Example: Atomics.add(typedArray, index, value)
[ 0.5535948872566223, -0.06184740737080574, -0.4351467490196228, 0.12643945217132568, -0.8787330389022827, -1.6721420288085938, 0.5651078820228577, 0.8527215719223022, 0.30913564562797546, -0.6667782068252563, -0.156691774725914, -0.5892114043235779, -0.3974388837814331, -0.18892663717269897...
javascript/reference/global_objects/atomics/add/index.md
JavaScript - Global Objects - Atomics - add - Syntax - Parameters: - `typedArray`: An integer typed array. One of `Int8Array`, `Uint8Array`, `Int16Array`, `Uint16Array`, `Int32Array`, `Uint32Array`, `BigInt64Array`, or `BigUint64Array`. - `index`: The position in the `typedArray` to add a `value` to. - `value`: The nu...
[ 0.7609453201293945, -0.5534000992774963, -0.980806827545166, 0.11013403534889221, -0.12288159132003784, -1.0689791440963745, 0.0875682607293129, 0.9838296175003052, 0.3907723128795624, -0.10199326276779175, -0.583038866519928, 0.07152923941612244, -1.2192596197128296, 0.63313227891922, -...
javascript/reference/global_objects/atomics/add/index.md
JavaScript - Global Objects - Atomics - add - Syntax - Return value: The old value at the given position (`typedArray[index]`).
[ 0.6453396677970886, -0.25818559527397156, -1.017332673072815, -0.304076224565506, -0.6260137557983398, -1.8706551790237427, 0.6407314538955688, 1.1748641729354858, -0.08022195845842361, 0.01698002777993679, -0.6523357033729553, 0.1181105375289917, -0.5524513721466064, 0.9566323161125183, ...
javascript/reference/global_objects/atomics/add/index.md
JavaScript - Global Objects - Atomics - add - Syntax - Exceptions: - `TypeError`: Thrown if `typedArray` is not one of the allowed integer types. - `RangeError`: Thrown if `index` is out of bounds in the `typedArray`.
[ 0.13043570518493652, -0.30909252166748047, -0.2283206582069397, 0.42826223373413086, -0.297652930021286, -1.8937077522277832, -0.4232665002346039, 0.7976884245872498, -0.2366042137145996, -0.21564185619354248, -0.720371663570404, -0.23378244042396545, -0.7414488792419434, -0.38237938284873...
javascript/reference/global_objects/atomics/add/index.md
JavaScript - Global Objects - Atomics - add - Examples: Note that these examples cannot be run directly from the console or an arbitrary web page, because `SharedArrayBuffer` is not defined unless its security requirements are met.
[ 0.7357410192489624, 0.6085936427116394, -1.3579648733139038, -0.04254603758454323, -0.9088796377182007, -0.5232707262039185, 0.736312985420227, 0.2048204392194748, 0.17295394837856293, -0.34908944368362427, 0.08871661126613617, 0.11660963296890259, -0.7053546905517578, -0.4644813537597656,...
javascript/reference/global_objects/atomics/add/index.md
JavaScript - Global Objects - Atomics - add - Examples - Using Atomics.add(): Example: // Create a SharedArrayBuffer with a size in bytes const sab = new SharedArrayBuffer(1024); // Create a view and set the value of the 0 index const ta = new Uint8Array(sab); ta[0] = 7; // 7 + 12 = 19 console.log(Atomics.add(ta, 0,...
[ 0.5447232723236084, 0.48639994859695435, -0.9349201321601868, 0.5252369046211243, -0.3311927318572998, -1.328466773033142, 0.602061927318573, -0.10436969250440598, 0.611642599105835, -0.10804103314876556, -0.278812050819397, -0.006040738895535469, -0.5443974137306213, -0.278969407081604, ...
javascript/reference/global_objects/atomics/and/index.md
JavaScript - Global Objects - Atomics - and: The `Atomics.and()` static method computes a bitwise AND with a given value at a given position in the array, and returns the old value at that position. This atomic operation guarantees that no other write happens until the modified value is written back.
[ 0.23437745869159698, 0.2697380781173706, -0.2842492461204529, 0.10443669557571411, -0.013341275975108147, -1.9153697490692139, 0.9528171420097351, 0.7326104640960693, 0.26657432317733765, 0.27892670035362244, -0.4433232545852661, -0.9734132289886475, 0.5590512156486511, -0.2785988450050354...
javascript/reference/global_objects/atomics/and/index.md
JavaScript - Global Objects - Atomics - and - Syntax: Example: Atomics.and(typedArray, index, value)
[ 0.9427606463432312, 0.2788217067718506, -0.30439406633377075, -0.2552255392074585, -0.7046171426773071, -2.1462295055389404, -0.08333361893892288, 0.6229718923568726, 0.21573257446289062, -0.5405257940292358, -0.1899292767047882, -0.8343507647514343, -0.15070702135562897, -0.58559620380401...
javascript/reference/global_objects/atomics/and/index.md
JavaScript - Global Objects - Atomics - and - Syntax - Parameters: - `typedArray`: An integer typed array. One of `Int8Array`, `Uint8Array`, `Int16Array`, `Uint16Array`, `Int32Array`, `Uint32Array`, `BigInt64Array`, or `BigUint64Array`. - `index`: The position in the `typedArray` to compute the bitwise AND. - `value`:...
[ 0.5418695211410522, 0.035222865641117096, -0.4917411208152771, 0.2602861523628235, 0.6485490798950195, -0.23554779589176178, 0.09371214359998703, 0.4467356204986572, 0.38000982999801636, 0.3477160930633545, -0.33315542340278625, -0.5642327070236206, 0.1279340237379074, 0.5379645824432373, ...
javascript/reference/global_objects/atomics/and/index.md
JavaScript - Global Objects - Atomics - and - Syntax - Return value: The old value at the given position (`typedArray[index]`).
[ 0.6230893135070801, -0.13671398162841797, -0.9782488942146301, -0.4125848710536957, -0.5724785327911377, -2.0291638374328613, 0.46968746185302734, 1.043412685394287, -0.1319759488105774, 0.08235018700361252, -0.5775095224380493, 0.19054308533668518, -0.2639335095882416, 0.8164235353469849,...
javascript/reference/global_objects/atomics/and/index.md
JavaScript - Global Objects - Atomics - and - Syntax - Exceptions: - `TypeError`: Thrown if `typedArray` is not one of the allowed integer types. - `RangeError`: Thrown if `index` is out of bounds in the `typedArray`.
[ 0.13375873863697052, -0.2169748842716217, -0.2009076029062271, 0.36964473128318787, -0.2072635143995285, -2.14162540435791, -0.616560697555542, 0.7254741191864014, -0.17240573465824127, -0.23583465814590454, -0.700263500213623, -0.2520349621772766, -0.5334042310714722, -0.5681486129760742,...
javascript/reference/global_objects/atomics/and/index.md
JavaScript - Global Objects - Atomics - and - Description: The bitwise AND operation only yields 1, if both `a` and `b` are 1. The truth table for the AND operation is: - `a`: 0, `b`: 0, `a & b`: 0 - `a`: 0, `b`: 1, `a & b`: 0 - `a`: 1, `b`: 0, `a & b`: 0 - `a`: 1, `b`: 1, `a & b`: 1 For example, a bitwise AND of `5...
[ 0.12257992476224899, 0.5837710499763489, -1.5682722330093384, 0.35898837447166443, 0.19588534533977509, -1.4324262142181396, -0.3512451946735382, 1.3682174682617188, -0.06686824560165405, 0.6434435844421387, -0.9541435837745667, -1.1704682111740112, 0.564315915107727, -0.02430170215666294,...
javascript/reference/global_objects/atomics/and/index.md
JavaScript - Global Objects - Atomics - and - Examples: Note that these examples cannot be run directly from the console or an arbitrary web page, because `SharedArrayBuffer` is not defined unless its security requirements are met.
[ 0.7951731085777283, 0.73845374584198, -1.5288752317428589, -0.21884271502494812, -0.9029964208602905, -0.5136058330535889, 0.6512244939804077, 0.08212372660636902, 0.1626323014497757, -0.3378768861293793, 0.1466682404279709, 0.06699962913990021, -0.6461215615272522, -0.6649265885353088, ...
javascript/reference/global_objects/atomics/and/index.md
JavaScript - Global Objects - Atomics - and - Examples - Using Atomics.and(): Example: // Create a SharedArrayBuffer with a size in bytes const sab = new SharedArrayBuffer(1024); // Create a view and set the value of the 0 index const ta = new Uint8Array(sab); ta[0] = 7; // 7 (0111) AND 10 (1010) = 2 (0010) console....
[ 0.7085698843002319, 0.6048983931541443, -0.9419996738433838, 0.6355985999107361, 0.00022030595573596656, -1.5825655460357666, 0.4644639790058136, -0.07058081030845642, 0.53814297914505, 0.29489460587501526, -0.3395686745643616, -0.19311542809009552, -0.0882096216082573, -0.6059190630912781...
javascript/reference/global_objects/atomics/load/index.md
JavaScript - Global Objects - Atomics - load: The `Atomics.load()` static method returns a value at a given position in the array. This atomic operation guarantees that the read is tear-free, and that all atomic reads are sequentially consistent.
[ 0.011566037312150002, -0.30558302998542786, -0.9210988283157349, -0.8058764934539795, 0.20342808961868286, -1.8408499956130981, 1.2932591438293457, 0.8163830637931824, -0.06695479154586792, 0.15141211450099945, -0.322521448135376, -0.6878527998924255, 0.050599537789821625, 0.05836635455489...
javascript/reference/global_objects/atomics/load/index.md
JavaScript - Global Objects - Atomics - load - Syntax: Example: Atomics.load(typedArray, index)
[ 0.7931634187698364, -0.010040855966508389, -0.6764082312583923, -0.33321744203567505, -0.8857847452163696, -1.752596378326416, 0.6962041854858398, 1.0068325996398926, -0.2775685787200928, -0.8207001090049744, -0.10018038004636765, -0.2061687856912613, -0.4925704300403595, -0.09255929291248...
javascript/reference/global_objects/atomics/load/index.md
JavaScript - Global Objects - Atomics - load - Syntax - Parameters: - `typedArray`: An integer typed array. One of `Int8Array`, `Uint8Array`, `Int16Array`, `Uint16Array`, `Int32Array`, `Uint32Array`, `BigInt64Array`, or `BigUint64Array`. - `index`: The position in the `typedArray` to load from.
[ 0.7273224592208862, -0.665274441242218, -1.2765576839447021, -0.08224300295114517, -0.00320864818058908, -0.990536630153656, 0.18875260651111603, 0.9805848002433777, 0.12950299680233002, -0.20066852867603302, -0.3892652690410614, 0.13259777426719666, -1.2990391254425049, 0.4275375902652740...
javascript/reference/global_objects/atomics/load/index.md
JavaScript - Global Objects - Atomics - load - Syntax - Return value: The value at the given position (`typedArray[index]`).
[ 0.689453125, -0.37358176708221436, -0.7252487540245056, -0.6994628310203552, -0.5427349209785461, -1.273199439048767, 0.6738928556442261, 1.0401115417480469, -0.06632710993289948, 0.025058632716536522, -0.24228467047214508, 0.3659816384315491, -0.3501165807247162, 0.7170838713645935, -0....
javascript/reference/global_objects/atomics/load/index.md
JavaScript - Global Objects - Atomics - load - Syntax - Exceptions: - `TypeError`: Thrown if `typedArray` is not one of the allowed integer types. - `RangeError`: Thrown if `index` is out of bounds in the `typedArray`.
[ 0.13476210832595825, -0.23995983600616455, -0.33131206035614014, 0.2740064263343811, -0.2855680286884308, -1.9738620519638062, -0.4331740140914917, 0.8989814519882202, -0.2948524057865143, -0.26719754934310913, -0.6723901629447937, -0.09860532730817795, -0.7387132048606873, -0.563508868217...
javascript/reference/global_objects/atomics/load/index.md
JavaScript - Global Objects - Atomics - load - Examples: Note that these examples cannot be run directly from the console or an arbitrary web page, because `SharedArrayBuffer` is not defined unless its security requirements are met.
[ 0.7795435190200806, 0.6353000998497009, -1.5819497108459473, -0.25064438581466675, -0.9066780805587769, -0.3058915138244629, 0.8913848400115967, 0.34677404165267944, 0.02344703860580921, -0.4127802550792694, 0.2072657197713852, 0.1343744546175003, -0.7938119173049927, -0.48658257722854614,...
javascript/reference/global_objects/atomics/load/index.md
JavaScript - Global Objects - Atomics - load - Examples - Using Atomics.load(): Example: // Create a SharedArrayBuffer with a size in bytes const sab = new SharedArrayBuffer(1024); // Create a view and set the value of the 0 index const ta = new Uint8Array(sab); ta[0] = 7; Atomics.add(ta, 0, 12); // Add 12 to index ...
[ 0.34035271406173706, 0.2122659981250763, -0.713791012763977, 0.6428308486938477, -0.12208108603954315, -0.9175095558166504, 0.7265899181365967, 0.0021600991021841764, 0.25279465317726135, -0.3248916566371918, -0.15644867718219757, 0.15355749428272247, -0.3746563196182251, -0.48750287294387...
javascript/reference/global_objects/atomics/sub/index.md
JavaScript - Global Objects - Atomics - sub: The `Atomics.sub()` static method subtracts a given value at a given position in the array, and returns the old value at that position. This atomic operation guarantees that no other write happens until the modified value is written back.
[ -0.49945563077926636, -0.06550727039575577, -0.7893784642219543, 0.09239017218351364, 0.03905103728175163, -1.8127853870391846, 1.615719199180603, 0.7111770510673523, 0.23464606702327728, 0.25561150908470154, -0.714348554611206, -0.868205189704895, 0.17644301056861877, 0.016093164682388306...
javascript/reference/global_objects/atomics/sub/index.md
JavaScript - Global Objects - Atomics - sub - Syntax: Example: Atomics.sub(typedArray, index, value)
[ 0.2514801621437073, -0.38647815585136414, -0.5844369530677795, -0.1657899171113968, -0.7881501317024231, -1.6205110549926758, 0.3444817364215851, 0.5212998390197754, 0.17173601686954498, -0.463981032371521, -0.19767476618289948, -0.6983326077461243, 0.029688427224755287, -0.183036744594573...
javascript/reference/global_objects/atomics/sub/index.md
JavaScript - Global Objects - Atomics - sub - Syntax - Parameters: - `typedArray`: An integer typed array. One of `Int8Array`, `Uint8Array`, `Int16Array`, `Uint16Array`, `Int32Array`, `Uint32Array`, `BigInt64Array`, or `BigUint64Array`. - `index`: The position in the `typedArray` to subtract a `value` from. - `value`:...
[ 0.5054244995117188, -0.6872909665107727, -1.2060314416885376, -0.013038991950452328, 0.1591012328863144, -1.0907529592514038, -0.1726481318473816, 0.8839651942253113, 0.46610593795776367, 0.1826518326997757, -0.6549087762832642, -0.1407478153705597, -1.0679528713226318, 0.5212037563323975,...
javascript/reference/global_objects/atomics/sub/index.md
JavaScript - Global Objects - Atomics - sub - Syntax - Return value: The old value at the given position (`typedArray[index]`).
[ 0.40708276629447937, -0.33010727167129517, -1.1515517234802246, -0.3738586902618408, -0.5702589750289917, -1.7781026363372803, 0.6223158836364746, 1.076066017150879, -0.24703823029994965, 0.08953440934419632, -0.6785068511962891, 0.20672352612018585, -0.2766004204750061, 0.9770021438598633...
javascript/reference/global_objects/atomics/sub/index.md
JavaScript - Global Objects - Atomics - sub - Syntax - Exceptions: - `TypeError`: Thrown if `typedArray` is not one of the allowed integer types. - `RangeError`: Thrown if `index` is out of bounds in the `typedArray`.
[ 0.055368099361658096, -0.34772413969039917, -0.32962071895599365, 0.4448377788066864, -0.24242904782295227, -1.9566938877105713, -0.5454707145690918, 0.7695907950401306, -0.2407405972480774, -0.20394159853458405, -0.752023458480835, -0.14995458722114563, -0.5225542187690735, -0.51729154586...
javascript/reference/global_objects/atomics/sub/index.md
JavaScript - Global Objects - Atomics - sub - Examples: Note that these examples cannot be run directly from the console or an arbitrary web page, because `SharedArrayBuffer` is not defined unless its security requirements are met.
[ 0.7476823329925537, 0.5122016072273254, -1.5935887098312378, -0.05875979736447334, -0.81578528881073, -0.39865267276763916, 0.7149345874786377, 0.06431317329406738, 0.042588189244270325, -0.3522609770298004, 0.08107905089855194, 0.024888619780540466, -0.5427224636077881, -0.496656924486160...
javascript/reference/global_objects/atomics/sub/index.md
JavaScript - Global Objects - Atomics - sub - Examples - Using Atomics.sub(): Example: // Create a SharedArrayBuffer with a size in bytes const sab = new SharedArrayBuffer(1024); // Create a view and set the value of the 0 index const ta = new Uint8Array(sab); ta[0] = 48; // 48 - 12 = 36 console.log(Atomics.sub(ta, ...
[ 0.2309291660785675, -0.16128918528556824, -1.1512640714645386, 0.5032629370689392, -0.07105141878128052, -0.5937954783439636, 0.7076839804649353, -0.21783602237701416, 0.34453606605529785, 0.21004442870616913, -0.10990313440561295, -0.2730313539505005, -0.06583461165428162, -0.350756764411...
javascript/reference/global_objects/atomics/islockfree/index.md
JavaScript - Global Objects - Atomics - isLockFree: The `Atomics.isLockFree()` static method is used to determine whether the `Atomics` methods use locks or atomic hardware operations when applied to typed arrays with the given element byte size. It is intended as an optimization primitive, so that high-performance al...
[ 0.5352054834365845, -0.37638166546821594, -1.2135846614837646, -0.0793568417429924, 0.2468455284833908, -1.9711949825286865, 1.8653267621994019, 0.4100522994995117, 0.4232960045337677, 0.7983806133270264, -1.1957656145095825, -1.0216518640518188, 0.15081223845481873, 0.0273292176425457, ...
javascript/reference/global_objects/atomics/islockfree/index.md
JavaScript - Global Objects - Atomics - isLockFree - Syntax: Example: Atomics.isLockFree(size)
[ 0.8216899633407593, 0.44138413667678833, -0.8373923301696777, -0.9997077584266663, -0.902803897857666, -2.353850841522217, 1.146711826324463, 0.788942277431488, 0.46143487095832825, -0.42590174078941345, -0.9008111357688904, -0.6862411499023438, -0.05456027016043663, 0.004890754818916321, ...
javascript/reference/global_objects/atomics/islockfree/index.md
JavaScript - Global Objects - Atomics - isLockFree - Syntax - Parameters: - `size`: The size in bytes to check.
[ 0.8387591242790222, 0.6654704809188843, -1.3841924667358398, -1.0315271615982056, -0.2698192596435547, -1.85649573802948, 1.017289638519287, 0.1236300840973854, 0.31360170245170593, -0.6232380270957947, -1.2452553510665894, 0.016253698617219925, 0.08466441929340363, 0.050187498331069946, ...
javascript/reference/global_objects/atomics/islockfree/index.md
JavaScript - Global Objects - Atomics - isLockFree - Syntax - Return value: A `true` or `false` value indicating whether the operation is lock free. - Always `true` if `size` is 4, because all known platforms support 4-byte atomic operations. - Always `false` if the given size is not one of the `BYTES_PER_ELEMENT` pr...
[ 0.40784746408462524, 0.37414905428886414, -0.8454039692878723, -0.22286275029182434, -0.1663486361503601, -1.5693657398223877, 1.1900883913040161, 0.7453859448432922, 0.2763320803642273, 0.06081076338887215, -0.9509556889533997, -0.24365264177322388, 0.28747305274009705, 0.2825564444065094...
javascript/reference/global_objects/atomics/islockfree/index.md
JavaScript - Global Objects - Atomics - isLockFree - Examples - Using Atomics.isLockFree(): Example: Atomics.isLockFree(1); // true (platform-dependent) Atomics.isLockFree(2); // true (platform-dependent) Atomics.isLockFree(3); // false Atomics.isLockFree(4); // true Atomics.isLockFree(5); // false Atomics.isLockFree...
[ 0.5976517200469971, 0.45267048478126526, -0.47458451986312866, -0.41479095816612244, -0.3174799978733063, -2.634330987930298, 1.2347710132598877, 0.5354666113853455, 0.06912559270858765, -0.13336941599845886, -1.0341144800186157, -0.7663565874099731, 0.3318634331226349, 0.16746215522289276...
javascript/reference/global_objects/atomics/exchange/index.md
JavaScript - Global Objects - Atomics - exchange: The `Atomics.exchange()` static method exchanges a given value at a given position in the array, and returns the old value at that position. This atomic operation guarantees that no other write happens between the read of the old value and the write of the new value.
[ -0.049528323113918304, -0.4281374216079712, -0.9198008179664612, 0.09188935160636902, 0.039317503571510315, -2.0533323287963867, 0.9981621503829956, 1.2235469818115234, 0.5319538712501526, -0.1734476089477539, -0.22677284479141235, -0.7477571368217468, 0.14961440861225128, 0.06199838593602...
javascript/reference/global_objects/atomics/exchange/index.md
JavaScript - Global Objects - Atomics - exchange - Syntax: Example: Atomics.exchange(typedArray, index, value)
[ 0.5557035803794861, -0.5073707103729248, -0.8013688921928406, -0.04490469768643379, -0.7389369010925293, -1.9974545240402222, 0.1217755600810051, 1.1449570655822754, 0.39086660742759705, -0.5947603583335876, 0.10975509136915207, -0.6998000741004944, -0.19396188855171204, 0.0230975765734910...
javascript/reference/global_objects/atomics/exchange/index.md
JavaScript - Global Objects - Atomics - exchange - Syntax - Parameters: - `typedArray`: An integer typed array. One of `Int8Array`, `Uint8Array`, `Int16Array`, `Uint16Array`, `Int32Array`, `Uint32Array`, `BigInt64Array`, or `BigUint64Array`. - `index`: The position in the `typedArray` to exchange a `value`. - `value`:...
[ 0.7231048345565796, -0.7460561990737915, -1.2738139629364014, 0.17311546206474304, 0.06475277245044708, -1.0139665603637695, -0.3409799337387085, 1.2696130275726318, 0.5971789360046387, -0.009982386603951454, -0.21006228029727936, 0.16428884863853455, -0.8498188257217407, 0.727684378623962...
javascript/reference/global_objects/atomics/exchange/index.md
JavaScript - Global Objects - Atomics - exchange - Syntax - Return value: The old value at the given position (`typedArray[index]`).
[ 0.5549575686454773, -0.302123486995697, -1.1172348260879517, -0.24102216958999634, -0.5243027806282043, -1.8685868978500366, 0.4481547474861145, 1.42177152633667, -0.02850501239299774, 0.11765442788600922, -0.49338844418525696, 0.2489427924156189, -0.3364638090133667, 0.9860982298851013, ...
javascript/reference/global_objects/atomics/exchange/index.md
JavaScript - Global Objects - Atomics - exchange - Syntax - Exceptions: - `TypeError`: Thrown if `typedArray` is not one of the allowed integer types. - `RangeError`: Thrown if `index` is out of bounds in the `typedArray`.
[ 0.12121835350990295, -0.3478087782859802, -0.35948505997657776, 0.5679325461387634, -0.27599993348121643, -1.9220213890075684, -0.6175758242607117, 1.0083212852478027, -0.23583021759986877, -0.2243518829345703, -0.5544884204864502, -0.118352510035038, -0.58180832862854, -0.3557872772216797...
javascript/reference/global_objects/atomics/exchange/index.md
JavaScript - Global Objects - Atomics - exchange - Examples: Note that these examples cannot be run directly from the console or an arbitrary web page, because `SharedArrayBuffer` is not defined unless its security requirements are met.
[ 0.67872154712677, 0.46438097953796387, -1.7127546072006226, 0.20964433252811432, -0.7999668717384338, -0.26166439056396484, 0.5798051357269287, 0.46348172426223755, 0.25218403339385986, -0.3383287191390991, 0.12874269485473633, 0.08799226582050323, -0.6404091715812683, -0.34691354632377625...
javascript/reference/global_objects/atomics/exchange/index.md
JavaScript - Global Objects - Atomics - exchange - Examples - Using Atomics.exchange(): Example: // Create a SharedArrayBuffer with a size in bytes const sab = new SharedArrayBuffer(1024); // Create a view and set the value of the 0 index const ta = new Uint8Array(sab); ta[0] = 7; console.log(Atomics.exchange(ta, 0,...
[ 0.387809693813324, -0.09922191500663757, -1.044173002243042, 0.9751662611961365, -0.008577468805015087, -1.494075059890747, 0.2806521952152252, 0.31386440992355347, 0.6327352523803711, 0.12630151212215424, 0.09468782693147659, -0.13741756975650787, -0.1690494567155838, -0.4465831220149994,...
javascript/reference/global_objects/atomics/wait/index.md
JavaScript - Global Objects - Atomics - wait: The `Atomics.wait()` static method verifies that a shared memory location contains a given value and if so sleeps, awaiting a wake-up notification or a time out. It returns a string which is `"not-equal"` if the memory location does not match the given value, `"ok"` if wok...
[ 0.2767748534679413, -0.12912650406360626, -0.4988706111907959, -0.40260785818099976, -0.5597070455551147, -2.138338327407837, 0.4653964638710022, 0.2930120825767517, -0.20439492166042328, 0.23358598351478577, -0.4543224275112152, -0.7486668825149536, 0.1847386360168457, 0.6527860760688782,...
javascript/reference/global_objects/atomics/wait/index.md
JavaScript - Global Objects - Atomics - wait - Syntax: Example: Atomics.wait(typedArray, index, value) Atomics.wait(typedArray, index, value, timeout)
[ 0.4559256136417389, 0.09915877878665924, -0.4593924283981323, -0.16441844403743744, -0.6197835803031921, -1.5129432678222656, -0.4695703983306885, 0.9683544039726257, -0.09399554878473282, -0.3934330642223358, -0.053468093276023865, -0.5273562669754028, -0.25902941823005676, 0.150588050484...
javascript/reference/global_objects/atomics/wait/index.md
JavaScript - Global Objects - Atomics - wait - Syntax - Parameters: - `typedArray`: An `Int32Array` or `BigInt64Array` that views a `SharedArrayBuffer`. - `index`: The position in the `typedArray` to wait on. - `value`: The expected value to test. - `timeout` (optional): Time to wait in milliseconds. `NaN` (and values...
[ 0.06646312028169632, -0.262886106967926, -0.5666654109954834, 0.0845537856221199, -0.22819507122039795, -0.8156717419624329, -0.4041370451450348, 0.7957261800765991, 0.27668851613998413, 0.5026898384094238, -0.534691572189331, -0.43398311734199524, -0.21589672565460205, 0.507621705532074, ...
javascript/reference/global_objects/atomics/wait/index.md
JavaScript - Global Objects - Atomics - wait - Syntax - Return value: A string which is either `"not-equal"`, `"ok"`, or `"timed-out"`. - `"not-equal"` is returned immediately if the initial `value` does not equal what is stored at `index`. - `"ok"` is returned if woken up by a call to `Atomics.notify()`, regardless ...
[ -0.0632157027721405, 0.2649623155593872, -0.2902919352054596, -0.5207160115242004, -0.6711282134056091, -1.961057424545288, 1.016151785850525, 0.9564040303230286, -0.8214700222015381, 0.4386361241340637, -0.36146339774131775, 0.22160367667675018, -0.7259336113929749, 0.8096747398376465, ...
javascript/reference/global_objects/atomics/wait/index.md
JavaScript - Global Objects - Atomics - wait - Syntax - Exceptions: - `TypeError`: Thrown in one of the following cases: - If `typedArray` is not an `Int32Array` or `BigInt64Array` that views a `SharedArrayBuffer`. - If the current thread cannot be blocked (for example, because it's the main thread). - `RangeError...
[ 0.15889792144298553, -0.20875464379787445, -0.34477338194847107, 0.20866233110427856, -0.36547937989234924, -1.1872583627700806, -0.8907192945480347, 0.6292516589164734, -0.1528787463903427, -0.03717702999711037, -0.28288257122039795, -0.3293055295944214, -0.45713263750076294, 0.1318097263...
javascript/reference/global_objects/atomics/wait/index.md
JavaScript - Global Objects - Atomics - wait - Examples: Note that these examples cannot be run directly from the console or an arbitrary web page, because `SharedArrayBuffer` is not defined unless its security requirements are met.
[ 0.8057531118392944, 0.6444934010505676, -1.5948714017868042, -0.07592888176441193, -0.9609079957008362, -0.16691501438617706, 0.6286852359771729, 0.2983589172363281, -0.09134672582149506, -0.28210413455963135, 0.1326991617679596, 0.08912698924541473, -0.5754463076591492, -0.413627237081527...
javascript/reference/global_objects/atomics/wait/index.md
JavaScript - Global Objects - Atomics - wait - Examples - Using Atomics.wait(): Given a shared `Int32Array`: Example: // Create a SharedArrayBuffer with a size in bytes const sab = new SharedArrayBuffer(1024); const int32 = new Int32Array(sab); A reading thread is sleeping and waiting on location 0 because the prov...
[ 0.47192829847335815, 0.3442768156528473, -0.5146477818489075, 0.21058423817157745, 0.052484191954135895, -1.5087354183197021, -0.5395297408103943, 0.15716974437236786, 0.17505298554897308, 0.1096426472067833, 0.08550484478473663, -0.6282387375831604, -0.4049193561077118, -0.238422468304634...
javascript/reference/global_objects/atomics/notify/index.md
JavaScript - Global Objects - Atomics - notify: The `Atomics.notify()` static method notifies up some agents that are sleeping in the wait queue. Note: This operation only works with an `Int32Array` or `BigInt64Array` that views a `SharedArrayBuffer`. It will return `0` on non-shared `ArrayBuffer` objects.
[ -0.1365317404270172, -0.1596660614013672, -0.4424765706062317, -0.04914039373397827, -0.5315471887588501, -2.2562096118927, 0.29632505774497986, 1.0359772443771362, -0.31485408544540405, 0.6652066707611084, -0.46949610114097595, -1.0751746892929077, 0.13300935924053192, -0.2061960548162460...
javascript/reference/global_objects/atomics/notify/index.md
JavaScript - Global Objects - Atomics - notify - Syntax: Example: Atomics.notify(typedArray, index, count)
[ 0.48691028356552124, 0.15452441573143005, -0.1620040237903595, -0.29793664813041687, -0.870509684085846, -2.69569730758667, -0.3526008129119873, 0.7582153081893921, -0.32416868209838867, -0.14756107330322266, -0.18202748894691467, -0.7215277552604675, -0.3257211744785309, 0.100598819553852...
javascript/reference/global_objects/atomics/notify/index.md
JavaScript - Global Objects - Atomics - notify - Syntax - Parameters: - `typedArray`: An `Int32Array` or `BigInt64Array` that views a `SharedArrayBuffer`. - `index`: The position in the `typedArray` to wake up on. - `count` (optional): The number of sleeping agents to notify. Defaults to `Infinity`.
[ 0.3029800057411194, -0.3853840231895447, -0.5664280652999878, -0.20169803500175476, -0.6347343325614929, -1.6997456550598145, 0.13658468425273895, 0.7151762247085571, 0.31408610939979553, 0.12272121012210846, -0.5335460305213928, -0.46060317754745483, -0.7385435700416565, 0.594667434692382...
javascript/reference/global_objects/atomics/notify/index.md
JavaScript - Global Objects - Atomics - notify - Syntax - Return value: Returns the number of woken up agents, or `0` if `typedArray` is a view on a non-shared `ArrayBuffer`.
[ 0.3972780704498291, -0.43884140253067017, -0.5274838805198669, -0.352062463760376, -1.1645532846450806, -1.5480619668960571, 0.8419402241706848, 1.0975496768951416, -0.12445073574781418, 0.34999310970306396, -0.4842933118343353, -0.25536733865737915, -0.24653339385986328, -0.24472978711128...
javascript/reference/global_objects/atomics/notify/index.md
JavaScript - Global Objects - Atomics - notify - Syntax - Exceptions: - `TypeError`: Thrown if `typedArray` is not an `Int32Array` or `BigInt64Array`. - `RangeError`: Thrown if `index` is out of bounds in the `typedArray`.
[ -0.37920162081718445, -0.4070906341075897, -0.16679105162620544, 0.44329729676246643, -0.37176990509033203, -2.250962734222412, -0.8564987778663635, 0.6806290745735168, -0.10659229010343552, -0.2512339651584625, -0.45353978872299194, -0.5072799921035767, -0.4910128712654114, -0.14784996211...
javascript/reference/global_objects/atomics/notify/index.md
JavaScript - Global Objects - Atomics - notify - Examples: Note that these examples cannot be run directly from the console or an arbitrary web page, because `SharedArrayBuffer` is not defined unless its security requirements are met.
[ 0.5299912095069885, 0.6764190793037415, -1.2650688886642456, -0.10606072843074799, -0.9058268070220947, -0.7665379643440247, 0.6185005903244019, 0.3796064555644989, 0.13047362864017487, -0.2828359603881836, 0.029543666169047356, 0.04376138746738434, -0.6287473440170288, -0.3917019069194793...
javascript/reference/global_objects/atomics/notify/index.md
JavaScript - Global Objects - Atomics - notify - Examples - Using Atomics.notify(): Given a shared `Int32Array`: Example: const sab = new SharedArrayBuffer(1024); const int32 = new Int32Array(sab); A reading thread is sleeping and waiting on location 0 because the provided `value` matches what is stored at the prov...
[ 0.2995969355106354, 0.11544148623943329, -0.04599978029727936, 0.16479170322418213, -0.10433650761842728, -1.871151089668274, -0.47257259488105774, 0.24844476580619812, 0.21636347472667694, -0.027814121916890144, 0.20794197916984558, -0.75242680311203, -0.2757507264614105, -0.1502342969179...
javascript/reference/global_objects/atomics/xor/index.md
JavaScript - Global Objects - Atomics - xor: The `Atomics.xor()` static method computes a bitwise XOR with a given value at a given position in the array, and returns the old value at that position. This atomic operation guarantees that no other write happens until the modified value is written back.
[ -0.06568341702222824, 0.18625862896442413, -0.8117228746414185, 0.06398651748895645, -0.037331368774175644, -1.1743969917297363, 1.3130496740341187, 0.5262410640716553, 0.3161394000053406, -0.10121782124042511, -0.2946348786354065, -0.8972159028053284, 0.12979573011398315, -0.3685714900493...
javascript/reference/global_objects/atomics/xor/index.md
JavaScript - Global Objects - Atomics - xor - Syntax: Example: Atomics.xor(typedArray, index, value)
[ 0.41375237703323364, 0.10727553814649582, -0.8321401476860046, -0.1972224861383438, -0.8084205389022827, -1.1999415159225464, 0.5470130443572998, 0.5698878765106201, 0.2124641239643097, -0.742839515209198, -0.042594071477651596, -0.7721641063690186, -0.40239793062210083, -0.413980662822723...
javascript/reference/global_objects/atomics/xor/index.md
JavaScript - Global Objects - Atomics - xor - Syntax - Parameters: - `typedArray`: An integer typed array. One of `Int8Array`, `Uint8Array`, `Int16Array`, `Uint16Array`, `Int32Array`, `Uint32Array`, `BigInt64Array`, or `BigUint64Array`. - `index`: The position in the `typedArray` to compute the bitwise XOR. - `value`:...
[ 0.7041304111480713, -0.3832313120365143, -1.2810174226760864, 0.11497748643159866, 0.2279980480670929, -0.5783510804176331, 0.16497986018657684, 0.681929349899292, 0.4781275987625122, 0.022145306691527367, -0.230412095785141, -0.026731273159384727, -0.7836266160011292, 0.08103115856647491,...
javascript/reference/global_objects/atomics/xor/index.md
JavaScript - Global Objects - Atomics - xor - Syntax - Return value: The old value at the given position (`typedArray[index]`).
[ 0.369125097990036, -0.04745982959866524, -1.1880205869674683, -0.34060099720954895, -0.5160899758338928, -1.5292799472808838, 0.720664381980896, 1.0201256275177002, -0.11435031145811081, -0.11411072313785553, -0.46196454763412476, 0.05224957317113876, -0.4303891062736511, 0.736785054206848...
javascript/reference/global_objects/atomics/xor/index.md
JavaScript - Global Objects - Atomics - xor - Syntax - Exceptions: - `TypeError`: Thrown if `typedArray` is not one of the allowed integer types. - `RangeError`: Thrown if `index` is out of bounds in the `typedArray`.
[ 0.07243309170007706, -0.08274255692958832, -0.4213576912879944, 0.46933117508888245, -0.21465638279914856, -1.7680490016937256, -0.34442758560180664, 0.668103039264679, -0.18664921820163727, -0.31730371713638306, -0.5902959108352661, -0.24555489420890808, -0.608880341053009, -0.68720036745...
javascript/reference/global_objects/atomics/xor/index.md
JavaScript - Global Objects - Atomics - xor - Description: The bitwise XOR operation yields 1, if `a` and `b` are different. The truth table for the XOR operation is: - `a`: 0, `b`: 0, `a ^ b`: 0 - `a`: 0, `b`: 1, `a ^ b`: 1 - `a`: 1, `b`: 0, `a ^ b`: 1 - `a`: 1, `b`: 1, `a ^ b`: 0 For example, a bitwise XOR of `5 ^...
[ 0.16576066613197327, 0.45975542068481445, -1.9959827661514282, 0.4501253664493561, 0.2667968273162842, -0.6762735843658447, 0.1397986263036728, 1.1554806232452393, 0.24957601726055145, 0.08899740874767303, -0.7657569646835327, -0.685498058795929, 0.12843410670757294, -0.20089727640151978, ...
javascript/reference/global_objects/atomics/xor/index.md
JavaScript - Global Objects - Atomics - xor - Examples: Note that these examples cannot be run directly from the console or an arbitrary web page, because `SharedArrayBuffer` is not defined unless its security requirements are met.
[ 0.6279639601707458, 0.8532634377479553, -1.6555660963058472, -0.15967628359794617, -0.9413398504257202, -0.1419973373413086, 0.8511806726455688, 0.09687558561563492, 0.12129280716180801, -0.4926568567752838, 0.21437235176563263, -0.10573770850896835, -0.6254065036773682, -0.711497724056243...
javascript/reference/global_objects/atomics/xor/index.md
JavaScript - Global Objects - Atomics - xor - Examples - Using Atomics.xor(): Example: // Create a SharedArrayBuffer with a size in bytes const sab = new SharedArrayBuffer(1024); // Create a view and set the value of the 0 index const ta = new Uint8Array(sab); ta[0] = 7; // 7 (0111) XOR 2 (0010) = 5 (0101) console.l...
[ 0.3494158685207367, 0.5619678497314453, -1.2311410903930664, 0.7618811130523682, -0.07191459834575653, -1.0159320831298828, 0.5334230661392212, 0.08110619336366653, 0.4345562160015106, -0.011224867776036263, 0.0077485861256718636, -0.3184444010257721, -0.35316309332847595, -0.5586642622947...
javascript/reference/global_objects/atomics/pause/index.md
JavaScript - Global Objects - Atomics - pause: The `Atomics.pause()` static method provides a micro-wait primitive that hints to the CPU that the caller is spinning while waiting on access to a shared resource. This allows the system to reduce the resources allocated to the core (such as power) or thread, without yiel...
[ -0.4547559320926666, -0.07351615279912949, -0.583347499370575, 0.11485655605792999, -0.7076787948608398, -2.169055461883545, 0.5711014866828918, 0.6895456910133362, 0.764541745185852, 0.5797948241233826, -0.8958004117012024, -0.9160228967666626, 0.6220027208328247, -0.32290276885032654, ...
javascript/reference/global_objects/atomics/pause/index.md
JavaScript - Global Objects - Atomics - pause - Syntax: Example: Atomics.pause() Atomics.pause(durationHint)
[ 0.5797544717788696, 0.28698188066482544, -0.08823975175619125, -0.46746599674224854, -1.098891258239746, -2.256983518600464, 0.23839540779590607, 0.9966539144515991, 0.09802256524562836, -0.02095223218202591, -0.5053684115409851, -0.5337352156639099, 0.1157849058508873, -0.3220157325267792...
javascript/reference/global_objects/atomics/pause/index.md
JavaScript - Global Objects - Atomics - pause - Syntax - Parameters: - `durationHint` (optional): An integer that an implementation may use to determine how long to wait. For a value `n + 1`, an implementation waits at least as long as it does for a given value `n`. The exact number has no physical meaning. There may ...
[ -0.007478067185729742, -0.3206707239151001, -0.3759917914867401, 0.22004732489585876, -0.6565072536468506, -1.8088115453720093, 0.4847846031188965, 0.4284690022468567, -0.3387081027030945, 0.530469536781311, -1.4267301559448242, 0.31507155299186707, -0.47351595759391785, 0.2147530764341354...
javascript/reference/global_objects/atomics/pause/index.md
JavaScript - Global Objects - Atomics - pause - Syntax - Return value: None (`undefined`).
[ 0.019905369728803635, 0.5266931056976318, -0.6761832237243652, -0.9361895322799683, -0.8500844240188599, -1.7594597339630127, 1.0153121948242188, 1.1014355421066284, -0.33692875504493713, 0.22521190345287323, -0.4022429883480072, -0.4083404541015625, 0.16166944801807404, 0.0833675190806388...
javascript/reference/global_objects/atomics/pause/index.md
JavaScript - Global Objects - Atomics - pause - Syntax - Exceptions: - `TypeError`: Thrown if `durationHint` is not an integer or `undefined`.
[ -0.4290803074836731, -0.23826877772808075, -0.16118180751800537, -0.1580769270658493, -0.9541118741035461, -1.7614080905914307, 0.0707022175192833, 0.5722498297691345, -0.8384513258934021, 0.0316820964217186, -0.755902886390686, -0.4654296338558197, -0.09930983930826187, -0.536628484725952...
javascript/reference/global_objects/atomics/pause/index.md
JavaScript - Global Objects - Atomics - pause - Examples: Note that these examples cannot be run directly from the console or an arbitrary web page, because `SharedArrayBuffer` is not defined unless its security requirements are met.
[ 0.638978898525238, 0.4915403723716736, -1.3841055631637573, -0.07110371440649033, -0.8532271981239319, -0.46502721309661865, 0.795355498790741, 0.40332111716270447, 0.26411619782447815, -0.1798608899116516, 0.08335576206445694, 0.06754649430513382, -0.5187289118766785, -0.5295940637588501,...
javascript/reference/global_objects/atomics/pause/index.md
JavaScript - Global Objects - Atomics - pause - Examples - Using Atomics.pause(): Calling `Atomics.wait()` or `Atomics.waitAsync()` in order to wait for access to shared memory causes the thread to be scheduled out of the core and then back in again after the wait. This is efficient during times of high contention, wh...
[ 1.21195650100708, 0.3713742196559906, -0.9706195592880249, 0.3633951246738434, -0.3673311471939087, -1.5362292528152466, 0.3227055072784424, 0.26584744453430176, 0.22930274903774261, 0.759013295173645, -0.5583364963531494, -0.24279892444610596, -0.29501762986183167, 0.5120297074317932, 0...
javascript/reference/global_objects/atomics/pause/index.md
JavaScript - Global Objects - Atomics - pause - Examples - Backoff strategies: The `durationHint` parameter can be used to implement backoff strategies. For example, a thread can start with a small hint and increase it exponentially on each iteration. This is preferable to calling `pause()` many times because in un-JI...
[ -0.35329964756965637, -0.28756412863731384, -0.804218053817749, 0.28949448466300964, -0.6606591939926147, -1.9137041568756104, 0.8788220286369324, 1.0450891256332397, -0.5233722925186157, 0.5396595001220703, -1.7523161172866821, 0.4129685163497925, -0.8672398924827576, 0.13736975193023682,...
javascript/reference/global_objects/isnan/index.md
JavaScript - Global Objects - isNaN: The `isNaN()` function determines whether a value is `NaN`, first converting the value to a number if necessary. Because coercion inside the `isNaN()` function can be surprising, you may prefer to use `Number.isNaN()`. Example: function milliseconds(x) { if (isNaN(x)) { ret...
[ -0.8267227411270142, -0.5644031167030334, -0.7191245555877686, -0.15962204337120056, -1.025219440460205, -0.9345815777778625, 0.20232363045215607, -0.15273909270763397, -0.688082754611969, 0.9068290591239929, -1.2592440843582153, -0.3412587344646454, 0.09771917015314102, -0.539368808269500...
javascript/reference/global_objects/isnan/index.md
JavaScript - Global Objects - isNaN - Syntax: Example: isNaN(value)
[ 0.1694640964269638, 0.052387040108442307, -0.33396080136299133, -0.5357949733734131, -1.3916715383529663, -1.4767526388168335, 1.0474811792373657, 1.2450722455978394, -0.5495808720588684, -0.23312143981456757, -0.9828677177429199, 0.29752567410469055, -0.028642021119594574, -0.291906893253...
javascript/reference/global_objects/isnan/index.md
JavaScript - Global Objects - isNaN - Syntax - Parameters: - `value`: The value to be tested.
[ 0.22225028276443481, 0.13584983348846436, -0.3650645911693573, -0.6973456740379333, -0.9575126767158508, -1.4363981485366821, 1.0935006141662598, 0.8511436581611633, -0.40084317326545715, 0.12662190198898315, -1.3049731254577637, 0.14648999273777008, -0.13987702131271362, 0.319775462150573...
javascript/reference/global_objects/isnan/index.md
JavaScript - Global Objects - isNaN - Syntax - Return value: `true` if the given value is `NaN` after being converted to a number; otherwise, `false`.
[ -0.7550857663154602, -0.05511805787682533, -0.16448596119880676, -0.3245006501674652, -1.292075514793396, -1.5715755224227905, 0.901878297328949, 0.7680827379226685, -1.0557472705841064, 0.44395339488983154, -1.2638503313064575, 0.08062145113945007, 0.28163501620292664, 0.26119232177734375...
javascript/reference/global_objects/isnan/index.md
JavaScript - Global Objects - isNaN - Description: `isNaN()` is a function property of the global object. For number values, `isNaN()` tests if the number is the value `NaN`. When the argument to the `isNaN()` function is not of type Number, the value is first coerced to a number, and the resulting value is then comp...
[ -0.22072289884090424, 0.08985266089439392, -0.2569902539253235, 0.2810739576816559, 0.733592689037323, -0.4020897150039673, 0.7071353197097778, 0.31641894578933716, -0.5392999053001404, -0.08408050239086151, -0.5403169393539429, -0.05861838161945343, -0.6847930550575256, 0.4445297122001648...
javascript/reference/global_objects/isnan/index.md
JavaScript - Global Objects - isNaN - Examples: Note how `isNaN()` returns `true` for values that are not the value `NaN` but are not numbers either: Example: isNaN(NaN); // true isNaN(undefined); // true isNaN({}); // true isNaN(true); // false isNaN(null); // false isNaN(37); // false // Strings isNaN("37"); // ...
[ -0.809090793132782, 0.1545799821615219, -0.5224086046218872, -0.2883472740650177, -0.7546844482421875, -1.4551080465316772, 0.30891263484954834, 0.37189796566963196, -0.9875392317771912, 0.7485197186470032, -1.045703411102295, -0.5635591745376587, 0.14021146297454834, 0.1721171885728836, ...
javascript/reference/global_objects/rangeerror/index.md
JavaScript - Global Objects - RangeError: The `RangeError` object indicates an error when a value is not in the set or range of allowed values.
[ -0.9247704148292542, 0.08742059767246246, -1.3031325340270996, 0.0837695375084877, -0.5468600392341614, -2.245140790939331, -0.7497348785400391, 1.1095643043518066, -0.47260892391204834, -0.9228326082229614, -0.7192912697792053, -0.07836759090423584, -0.4892316460609436, 0.0459114164113998...
javascript/reference/global_objects/rangeerror/index.md
JavaScript - Global Objects - RangeError - Description: A `RangeError` is thrown when trying to pass a value as an argument to a function that does not allow a range that includes the value. This can be encountered when: - passing a value that is not one of the allowed string values to `String.prototype.normalize()`...
[ -1.1492719650268555, 0.47210800647735596, -1.0478037595748901, -0.08597473055124283, -0.23013973236083984, -1.044829249382019, -0.6877149343490601, 0.7093756198883057, -0.4247642159461975, -0.6182105541229248, -0.4119100570678711, 0.08126215636730194, -0.5490480661392212, 0.192090973258018...
javascript/reference/global_objects/rangeerror/index.md
JavaScript - Global Objects - RangeError - Constructor: - `RangeError()`: Creates a new `RangeError` object.
[ -1.0904886722564697, 0.15678457915782928, -0.9853726625442505, -0.05440166965126991, -0.32001954317092896, -1.8842692375183105, -0.705894410610199, 1.4333853721618652, -0.7452991008758545, -0.7565789818763733, -0.7560698390007019, -0.2676922380924225, -0.7138566374778748, 0.159521728754043...