(children)
| 22 | }; |
| 23 | |
| 24 | export function childrenAsString(children) { |
| 25 | if (!children) { |
| 26 | return ''; |
| 27 | } else if (typeof children === 'string') { |
| 28 | return children; |
| 29 | } else if (children.length) { |
| 30 | return children.join(''); |
| 31 | } else { |
| 32 | return ''; |
| 33 | } |
| 34 | } |
no test coverage detected