MCPcopy Index your code
hub / github.com/ampproject/amphtml / parseSelection

Function parseSelection

third_party/subscriptions-project/swg.js:7599–7606  ·  view source on GitHub ↗

* @param {?string} s * @return {?Selection}

(s)

Source from the content-addressed store, hash-verified

7597 * @return {?Selection}
7598 */
7599function parseSelection(s) {
7600 // Do a simple if-then to inline the whole Selection enum.
7601 return s == Selection.EXPERIMENT
7602 ? Selection.EXPERIMENT
7603 : s == Selection.CONTROL
7604 ? Selection.CONTROL
7605 : null;
7606}
7607
7608/**
7609 * Whether the specified experiment is on or off.

Callers 1

parseSetExperimentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected