MCPcopy
hub / github.com/nuxt/nuxt / attributeToString

Function attributeToString

packages/nuxt/src/components/plugins/islands-transform.ts:178–180  ·  view source on GitHub ↗
(attributes: Record<string, string>)

Source from the content-addressed store, hash-verified

176}
177
178function attributeToString (attributes: Record<string, string>) {
179 return Object.entries(attributes).map(([name, value]) => value ? ` ${name}="${value}"` : ` ${name}`).join('')
180}
181
182function isBinding (attr: string): boolean {
183 return attr.startsWith(':')

Callers 1

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…