Home / Function/ createKeyToOldIdx() — vue Function Reference

createKeyToOldIdx() — vue Function Reference

Architecture documentation for the createKeyToOldIdx() function in patch.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  cbc791b1_c559_f57b_c841_3027937f5759["createKeyToOldIdx()"]
  020681fa_600e_5c84_6a4e_f1289077cc78["patch.ts"]
  cbc791b1_c559_f57b_c841_3027937f5759 -->|defined in| 020681fa_600e_5c84_6a4e_f1289077cc78
  dca56857_b66b_81ec_c7d3_4029eaf84e02["createPatchFunction()"]
  dca56857_b66b_81ec_c7d3_4029eaf84e02 -->|calls| cbc791b1_c559_f57b_c841_3027937f5759
  style cbc791b1_c559_f57b_c841_3027937f5759 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/vdom/patch.ts lines 56–64

function createKeyToOldIdx(children, beginIdx, endIdx) {
  let i, key
  const map = {}
  for (i = beginIdx; i <= endIdx; ++i) {
    key = children[i].key
    if (isDef(key)) map[key] = i
  }
  return map
}

Domain

Subdomains

Frequently Asked Questions

What does createKeyToOldIdx() do?
createKeyToOldIdx() is a function in the vue codebase, defined in src/core/vdom/patch.ts.
Where is createKeyToOldIdx() defined?
createKeyToOldIdx() is defined in src/core/vdom/patch.ts at line 56.
What calls createKeyToOldIdx()?
createKeyToOldIdx() is called by 1 function(s): createPatchFunction.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free