MCPcopy Create free account
hub / github.com/nodejs/node / count

Method count

deps/v8/tools/system-analyzer/timeline.mjs:75–79  ·  view source on GitHub ↗

@returns {number}

(filter)

Source from the content-addressed store, hash-verified

73
74 /** @returns {number} */
75 count(filter) {
76 return this.all.reduce((sum, each) => {
77 return sum + (filter(each) === true ? 1 : 0);
78 }, 0);
79 }
80
81 filter(predicate) {
82 return this.all.filter(predicate);

Callers 6

ProcessContentsMethod · 0.45
PresubmitCheckFunction · 0.45
_GenerateDefFileBuildFunction · 0.45
urlizeFunction · 0.45
tokeniterMethod · 0.45

Calls 2

reduceMethod · 0.80
filterFunction · 0.50

Tested by

no test coverage detected