MCPcopy Index your code
hub / github.com/tinyplex/tinybase / getArticle

Function getArticle

site/js/common/common.ts:20–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19let article: HTMLElement | null = null;
20export const getArticle = (): HTMLElement =>
21 (article ??= query('body > main > article'));
22
23export const preventDefault = (event: Event): void => event.preventDefault();
24

Callers 3

single.tsFile · 0.90
goFunction · 0.85
addStackblitzFunction · 0.85

Calls 1

queryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…