MCPcopy Create free account
hub / github.com/TruthHun/BookStack / normalizeChildren

Function normalizeChildren

static/vuejs/vue.esm.js:1759–1765  ·  view source on GitHub ↗
(children)

Source from the content-addressed store, hash-verified

1757// with hand-written render functions / JSX. In such cases a full normalization
1758// is needed to cater to all possible types of children values.
1759function normalizeChildren (children) {
1760 return isPrimitive(children)
1761 ? [createTextVNode(children)]
1762 : Array.isArray(children)
1763 ? normalizeArrayChildren(children)
1764 : undefined
1765}
1766
1767function normalizeArrayChildren (children, nestedIndex) {
1768 var res = [];

Callers 1

_createElementFunction · 0.70

Calls 3

isPrimitiveFunction · 0.70
createTextVNodeFunction · 0.70
normalizeArrayChildrenFunction · 0.70

Tested by

no test coverage detected