checkProp() — vue Function Reference
Architecture documentation for the checkProp() function in extract-props.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD d782c50f_f916_1903_69a9_a36cbe8097dc["checkProp()"] 7b1ecc0f_b742_8636_72e7_fcf6a82f8c1f["extractPropsFromVNodeData()"] 7b1ecc0f_b742_8636_72e7_fcf6a82f8c1f -->|calls| d782c50f_f916_1903_69a9_a36cbe8097dc style d782c50f_f916_1903_69a9_a36cbe8097dc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/vdom/helpers/extract-props.ts lines 52–75
function checkProp(
res: Object,
hash: Object | undefined,
key: string,
altKey: string,
preserve: boolean
): boolean {
if (isDef(hash)) {
if (hasOwn(hash, key)) {
res[key] = hash[key]
if (!preserve) {
delete hash[key]
}
return true
} else if (hasOwn(hash, altKey)) {
res[key] = hash[altKey]
if (!preserve) {
delete hash[altKey]
}
return true
}
}
return false
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does checkProp() do?
checkProp() is a function in the vue codebase.
What calls checkProp()?
checkProp() is called by 1 function(s): extractPropsFromVNodeData.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free