MCPcopy Create free account
hub / github.com/melonjs/melonJS / reset

Method reset

packages/debug-plugin/src/counters.js:10–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8 }
9
10 reset() {
11 for (const key of this.keys()) {
12 this.set(key, 0);
13 }
14 }
15
16 inc(stat, value = 1) {
17 this.set(stat, (this.get(stat) ?? 0) + value);

Callers 1

constructorMethod · 0.45

Calls 1

setMethod · 0.45

Tested by

no test coverage detected