MCPcopy
hub / github.com/fanmingming/live / normalizeChildren

Function normalizeChildren

m3u8/vue.js:2363–2369  ·  view source on GitHub ↗
(children)

Source from the content-addressed store, hash-verified

2361 // with hand-written render functions / JSX. In such cases a full normalization
2362 // is needed to cater to all possible types of children values.
2363 function normalizeChildren (children) {
2364 return isPrimitive(children)
2365 ? [createTextVNode(children)]
2366 : Array.isArray(children)
2367 ? normalizeArrayChildren(children)
2368 : undefined
2369 }
2370
2371 function isTextNode (node) {
2372 return isDef(node) && isDef(node.text) && isFalse(node.isComment)

Callers 3

normalizedFunction · 0.85
_createElementFunction · 0.85

Calls 3

isPrimitiveFunction · 0.85
createTextVNodeFunction · 0.85
normalizeArrayChildrenFunction · 0.85

Tested by

no test coverage detected