Home / Function/ simpleNormalizeChildren() — vue Function Reference

simpleNormalizeChildren() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  cf26be84_71e4_8cfb_a58c_45a157e65d3d["simpleNormalizeChildren()"]
  e7b32c4a_f6fb_aeaf_60fb_86f2dc39a287["constructor()"]
  e7b32c4a_f6fb_aeaf_60fb_86f2dc39a287 -->|calls| cf26be84_71e4_8cfb_a58c_45a157e65d3d
  style cf26be84_71e4_8cfb_a58c_45a157e65d3d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/vdom/helpers/normalize-children.ts lines 23–30

export function simpleNormalizeChildren(children: any) {
  for (let i = 0; i < children.length; i++) {
    if (isArray(children[i])) {
      return Array.prototype.concat.apply([], children)
    }
  }
  return children
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does simpleNormalizeChildren() do?
simpleNormalizeChildren() is a function in the vue codebase.
What calls simpleNormalizeChildren()?
simpleNormalizeChildren() is called by 1 function(s): constructor.

Analyze Your Own Codebase

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

Try Supermodel Free