MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / count

Method count

assets/js/wordCounter.js:9–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 });
8 }
9 count() {
10 let wordStat = this.getWordStat(this.inputText.value.trim());
11 this.emitEvent(wordStat);
12 }
13 emitEvent(wordStat) {
14 // create count envent
15 let countEvent = new CustomEvent("count", {

Callers 1

constructorMethod · 0.95

Calls 2

getWordStatMethod · 0.95
emitEventMethod · 0.95

Tested by

no test coverage detected