Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/node
/ swap
Function
swap
deps/v8/tools/clusterfuzz/js_fuzzer/random.js:29–31 ·
view source on GitHub ↗
(array, p1, p2)
Source
from the content-addressed store, hash-verified
27
}
28
29
function
swap(array, p1, p2) {
30
[array[p1], array[p2]] = [array[p2], array[p1]];
31
}
32
33
/**
34
* Toggle a boolean flag with a probability.
Callers
2
twoBucketSample
Function · 0.70
shuffle
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected