MCPcopy Index your code
hub / github.com/codecombat/codecombat / getQueryVariable

Function getQueryVariable

app/core/utils.js:836–839  ·  view source on GitHub ↗
(param, defaultValue)

Source from the content-addressed store, hash-verified

834}
835
836const getQueryVariable = function (param, defaultValue) {
837 const variables = getQueryVariables()
838 return variables[param] != null ? variables[param] : defaultValue
839}
840
841const getExperimentValueFromQuery = function (param) {
842 return { true: 'beta', false: 'control', control: 'control', beta: 'beta' }[getQueryVariable(param)]

Callers 4

trackReferrersMethod · 0.90
isSuperflowEnabledMethod · 0.90
initFunction · 0.85

Calls 1

getQueryVariablesFunction · 0.85

Tested by

no test coverage detected