MCPcopy Index your code
hub / github.com/github/docs / initializeExperiments

Function initializeExperiments

components/lib/experiment.ts:24–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24export function initializeExperiments() {
25 if (initialized) return
26 initialized = true
27 // *** Example test code ***
28 // const testName = '$test-name$'
29 // const xbucket = bucket(testName)
30 // const x = document.querySelector(...)
31 // x.addEventListener('click', () => { sendSuccess(testName) })
32 // if (xbucket === TREATMENT) applyTreatment(x)
33}

Callers 1

MyAppFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected