MCPcopy Index your code
hub / github.com/tsoding/button / playFart

Function playFart

index.js:23–32  ·  view source on GitHub ↗
(fart, randomPitch)

Source from the content-addressed store, hash-verified

21}
22
23function playFart(fart, randomPitch) {
24 for (const f of farts) {
25 f.pause();
26 f.currentTime = 0;
27 }
28
29 fart.playbackRate = randomPitch ? randomPlaybackRate() : 1;
30 fart.play();
31 shaking = true;
32}
33
34const regularAction = () => {
35 clickMeText.innerText = `Congrats! You clicked it ${counter} times!`;

Callers 3

regularActionFunction · 0.85
thatsItForNowFunction · 0.85
index.jsFile · 0.85

Calls 1

randomPlaybackRateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…