MCPcopy
hub / github.com/hotwired/stimulus / has

Method has

src/core/data_map.ts:30–33  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

28 }
29
30 has(key: string): boolean {
31 const name = this.getAttributeNameForKey(key)
32 return this.element.hasAttribute(name)
33 }
34
35 delete(key: string): boolean {
36 if (this.has(key)) {

Callers 11

deleteMethod · 0.95
getFunction · 0.45
warnMethod · 0.45
connectOutletMethod · 0.45
disconnectOutletMethod · 0.45
getFunction · 0.45
getFunction · 0.45
connectTargetMethod · 0.45
disconnectTargetMethod · 0.45
getFunction · 0.45

Calls 1

Tested by

no test coverage detected