* Parse any `ComponentChildren` into an array of nodes. * * @param children - The children to parse.
(children: ComponentChildren)
| 1314 | * @param children - The children to parse. |
| 1315 | */ |
| 1316 | protected parseChildren(children: ComponentChildren): Node[] { |
| 1317 | const result: Node[] = []; |
| 1318 | const array = Array.isArray(children) ? children : [children]; |
| 1319 | for (const child of array) { |
| 1320 | if (child instanceof Node) { |
| 1321 | result.push(child); |
| 1322 | } |
| 1323 | } |
| 1324 | |
| 1325 | return result; |
| 1326 | } |
| 1327 | |
| 1328 | /** |
| 1329 | * Remove the given child. |