MCPcopy Index your code
hub / github.com/microsoft/SandDance / existingHeader

Function existingHeader

packages/sanddance/src/headers.ts:29–34  ·  view source on GitHub ↗
(element: HTMLElement, header: string)

Source from the content-addressed store, hash-verified

27}
28
29function existingHeader(element: HTMLElement, header: string) {
30 const { previousElementSibling } = element;
31 if (previousElementSibling && previousElementSibling.innerHTML === header) {
32 return previousElementSibling;
33 }
34}

Callers 1

conditionalHeaderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected