MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / latestByKind

Function latestByKind

scripts/e2e-webrtc-reliability.mjs:457–461  ·  view source on GitHub ↗
(streams, kind)

Source from the content-addressed store, hash-verified

455}
456
457function latestByKind(streams, kind) {
458 return streams
459 .filter((stream) => stream.kind === kind)
460 .sort((a, b) => numeric(b.timestampMs) - numeric(a.timestampMs))[0];
461}
462
463const profileDir = await mkdtemp(join(tmpdir(), "simdeck-webrtc-e2e-"));
464const chromeArgs = [

Callers 1

Calls 1

numericFunction · 0.70

Tested by

no test coverage detected