MCPcopy
hub / github.com/ampproject/amphtml / setItem

Method setItem

testing/fake-dom.js:656–658  ·  view source on GitHub ↗

* @param {string} name * @param {*} value * @return {?string}

(name, value)

Source from the content-addressed store, hash-verified

654 * @return {?string}
655 */
656 setItem(name, value) {
657 this.values[name] = String(value);
658 }
659
660 /**
661 * @param {string} name

Callers 15

expectExperimentFunction · 0.80
storeFunction · 0.80
handleToggleTheme_Method · 0.80
saveBlobMethod · 0.80
saveExperimentTogglesFunction · 0.80
useLocalStorageFunction · 0.80
setSessionState_Method · 0.80
store_Method · 0.80
writeLocalStorageFunction · 0.80
setStorageMethod · 0.80
test-amp-script.jsFile · 0.80

Calls 1

StringFunction · 0.50

Tested by

no test coverage detected