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
  a3b38362_9a5e_3cb5_557e_ce46c6a2aceb["createKeyToOldIdx()"]
  b5b9b2bc_af65_0b4d_18a8_d754e24c79b1["createPatchFunction()"]
  b5b9b2bc_af65_0b4d_18a8_d754e24c79b1 -->|calls| a3b38362_9a5e_3cb5_557e_ce46c6a2aceb
  style a3b38362_9a5e_3cb5_557e_ce46c6a2aceb 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.
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