Home / Function/ normalizeChildren() — vue Function Reference

normalizeChildren() — vue Function Reference

Architecture documentation for the normalizeChildren() function in normalize-children.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  00cce470_87b6_9803_7f03_3dd6786130a1["normalizeChildren()"]
  e7b32c4a_f6fb_aeaf_60fb_86f2dc39a287["constructor()"]
  e7b32c4a_f6fb_aeaf_60fb_86f2dc39a287 -->|calls| 00cce470_87b6_9803_7f03_3dd6786130a1
  d79e8d83_cfdc_ef26_76af_cc7f688eafce["createFunctionalComponent()"]
  d79e8d83_cfdc_ef26_76af_cc7f688eafce -->|calls| 00cce470_87b6_9803_7f03_3dd6786130a1
  4654ec48_ee34_3880_324a_14ac626facd2["normalizeScopedSlot()"]
  4654ec48_ee34_3880_324a_14ac626facd2 -->|calls| 00cce470_87b6_9803_7f03_3dd6786130a1
  587d6539_745c_96b2_3b45_56fbf8ca59e2["isPrimitive()"]
  00cce470_87b6_9803_7f03_3dd6786130a1 -->|calls| 587d6539_745c_96b2_3b45_56fbf8ca59e2
  095748dd_81f1_6e03_d155_904f85441616["createTextVNode()"]
  00cce470_87b6_9803_7f03_3dd6786130a1 -->|calls| 095748dd_81f1_6e03_d155_904f85441616
  242e8703_557d_b7a4_e1e5_d4b525f65345["normalizeArrayChildren()"]
  00cce470_87b6_9803_7f03_3dd6786130a1 -->|calls| 242e8703_557d_b7a4_e1e5_d4b525f65345
  style 00cce470_87b6_9803_7f03_3dd6786130a1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/vdom/helpers/normalize-children.ts lines 36–42

export function normalizeChildren(children: any): Array<VNode> | undefined {
  return isPrimitive(children)
    ? [createTextVNode(children)]
    : isArray(children)
    ? normalizeArrayChildren(children)
    : undefined
}

Domain

Subdomains

Frequently Asked Questions

What does normalizeChildren() do?
normalizeChildren() is a function in the vue codebase.
What does normalizeChildren() call?
normalizeChildren() calls 3 function(s): createTextVNode, isPrimitive, normalizeArrayChildren.
What calls normalizeChildren()?
normalizeChildren() is called by 3 function(s): constructor, createFunctionalComponent, normalizeScopedSlot.

Analyze Your Own Codebase

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

Try Supermodel Free