MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / emptyDomain

Function emptyDomain

tests/modules/io/storage/storage_FIXTURE.js:9–15  ·  view source on GitHub ↗
(store)

Source from the content-addressed store, hash-verified

7}
8
9function emptyDomain(store) {
10 const k = keys(store)
11 for (let key of k)
12 store.delete(key);
13
14 assert.sameValue(Array.from(store).length, 0, "emptyDomain failed");
15}
16
17export {storage as default, emptyDomain, keys}

Callers 4

read-only.jsFile · 0.90
read-write.jsFile · 0.90
delete.jsFile · 0.90
iterator.jsFile · 0.90

Calls 3

keysFunction · 0.85
deleteMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected