MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / count

Function count

src/lib/console.js:113–121  ·  view source on GitHub ↗
(hash = "default")

Source from the content-addressed store, hash-verified

111 $console.appendChild($inputContainer);
112 },
113 count(hash = "default") {
114 originalConsole.count(hash);
115 if (!counter[hash]) {
116 counter[hash] = 1;
117 } else {
118 ++counter[hash];
119 }
120 log("log", getStack(new Error()), `${hash}: ${counter[hash]}`);
121 },
122 countReset(hash) {
123 originalConsole.countReset(hash);
124 delete counter[hash];

Callers

nothing calls this directly

Calls 2

getStackFunction · 0.85
logFunction · 0.70

Tested by

no test coverage detected