MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / remove

Method remove

src/background/utils/storage.js:53–56  ·  view source on GitHub ↗

* @param {string|number|Array } id * @return {Promise }

(id)

Source from the content-addressed store, hash-verified

51 * @return {Promise<void>}
52 */
53 async remove(id) {
54 const keys = ensureArray(id).filter(Boolean).map(this.toKey, this);
55 if (keys.length) await api.remove(keys);
56 }
57
58 async setOne(id, value) {
59 if (id) return this.set({ [id]: value });

Callers 15

onDragMouseUpFunction · 0.80
requestNewerFunction · 0.80
removeScriptsFunction · 0.80
parseScriptFunction · 0.80
vacuumFunction · 0.80
TabCloseFunction · 0.80
removeSubMenusFunction · 0.80
setEnabledFunction · 0.80
removeFunction · 0.80
flushFunction · 0.80
undoImportFunction · 0.80
CookieDeleteFunction · 0.80

Calls 3

ensureArrayFunction · 0.90
mapMethod · 0.80
filterMethod · 0.80

Tested by

no test coverage detected