MCPcopy
hub / github.com/philc/vimium / set

Method set

lib/utils.js:341–350  ·  view source on GitHub ↗
(key, value = null)

Source from the content-addressed store, hash-verified

339
340 // Set value, and return that value. If value is null, then delete key.
341 set(key, value = null) {
342 this.rotate();
343 delete this.previous[key];
344 if (value != null) {
345 return this.cache[key] = value;
346 } else {
347 delete this.cache[key];
348 return null;
349 }
350 }
351
352 get(key) {
353 this.rotate();

Callers 15

saveToStorageMethod · 0.80
main.jsFile · 0.80
loadKeyMappingsFunction · 0.80
installKeyStateMappingFunction · 0.80
prepareHelpPageDataFunction · 0.80
saveMarkFunction · 0.80
setRulesFunction · 0.80
lookupEngineFunction · 0.80
completeFunction · 0.80
generateHtmlMethod · 0.80
refreshMethod · 0.80
activateFunction · 0.80

Calls 1

rotateMethod · 0.95

Tested by

no test coverage detected