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

Function normalizeChildren

static/vuejs/vue.runtime.common.js:1757–1763  ·  view source on GitHub ↗
(children)

Source from the content-addressed store, hash-verified

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

Callers 1

_createElementFunction · 0.70

Calls 3

isPrimitiveFunction · 0.70
createTextVNodeFunction · 0.70
normalizeArrayChildrenFunction · 0.70

Tested by

no test coverage detected