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

Function normalizeChildren

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

Source from the content-addressed store, hash-verified

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

Callers 1

_createElementFunction · 0.70

Calls 3

isPrimitiveFunction · 0.70
createTextVNodeFunction · 0.70
normalizeArrayChildrenFunction · 0.70

Tested by

no test coverage detected