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

Method has

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

@param {T} event

(event)

Source from the content-addressed store, hash-verified

305
306 /** @param {T} event */
307 has(event) {
308 if (this.isEmpty()) return false;
309 return this.first().time <= event.time && event.time <= this.last().time;
310 }
311
312 /** @param {Chunk<T>[]} chunks */
313 next(chunks) {

Callers 1

filterMethod · 0.95

Calls 3

isEmptyMethod · 0.95
firstMethod · 0.95
lastMethod · 0.95

Tested by

no test coverage detected