bindDynamicKeys() — vue Function Reference
Architecture documentation for the bindDynamicKeys() function in bind-dynamic-keys.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 54093a45_92f3_9235_2039_3a12e4138c47["bindDynamicKeys()"] 71884ec5_04b3_568f_efb9_3e3c6cdaaa54["bind-dynamic-keys.ts"] 54093a45_92f3_9235_2039_3a12e4138c47 -->|defined in| 71884ec5_04b3_568f_efb9_3e3c6cdaaa54 style 54093a45_92f3_9235_2039_3a12e4138c47 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/instance/render-helpers/bind-dynamic-keys.ts lines 12–29
export function bindDynamicKeys(
baseObj: Record<string, any>,
values: Array<any>
): Object {
for (let i = 0; i < values.length; i += 2) {
const key = values[i]
if (typeof key === 'string' && key) {
baseObj[values[i]] = values[i + 1]
} else if (__DEV__ && key !== '' && key !== null) {
// null is a special value for explicitly removing a binding
warn(
`Invalid value for dynamic directive argument (expected string or null): ${key}`,
this
)
}
}
return baseObj
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindDynamicKeys() do?
bindDynamicKeys() is a function in the vue codebase, defined in src/core/instance/render-helpers/bind-dynamic-keys.ts.
Where is bindDynamicKeys() defined?
bindDynamicKeys() is defined in src/core/instance/render-helpers/bind-dynamic-keys.ts at line 12.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free