MCPcopy Create free account
hub / github.com/BloombergGraphics/whatiscode / getWordCount

Function getWordCount

modules/toc/toc.js:58–61  ·  view source on GitHub ↗
(sel)

Source from the content-addressed store, hash-verified

56 });
57
58 function getWordCount(sel) {
59 if(!arguments.length) sel = d3.select("body");
60 return sel.text().trim().replace(/\s+/gi, ' ').split(' ').length;
61 }
62
63 function getWordsPerMs() {
64 // filter scroll log to last five minutes

Callers 1

loadStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected