Home / Function/ checkProp() — vue Function Reference

checkProp() — vue Function Reference

Architecture documentation for the checkProp() function in extract-props.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  6df65a4c_84fa_c2da_0000_4ef009d1eb0a["checkProp()"]
  3dded016_b1bc_eb89_7c3f_4a6c756e9711["extractPropsFromVNodeData()"]
  3dded016_b1bc_eb89_7c3f_4a6c756e9711 -->|calls| 6df65a4c_84fa_c2da_0000_4ef009d1eb0a
  style 6df65a4c_84fa_c2da_0000_4ef009d1eb0a 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

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