MCPcopy Create free account
hub / github.com/Fiddle-Digital/string-scroll / attr

Function attr

src/Utils/attr.ts:1–3  ·  view source on GitHub ↗
(e: any, n: string, d: any = null)

Source from the content-addressed store, hash-verified

1export function attr(e: any, n: string, d: any = null) {
2 return e.getAttribute(n) == null ? d : e.getAttribute(n)
3}

Callers 6

constructorMethod · 0.90
resizeMethod · 0.90
initMethod · 0.90
addObjectMethod · 0.90
callbackGlMethod · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected