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

Function normalizeChildren

static/vuejs/vue.runtime.js:1761–1767  ·  view source on GitHub ↗
(children)

Source from the content-addressed store, hash-verified

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

Callers 1

_createElementFunction · 0.70

Calls 3

isPrimitiveFunction · 0.70
createTextVNodeFunction · 0.70
normalizeArrayChildrenFunction · 0.70

Tested by

no test coverage detected