( separator: React.ReactNode, items: readonly JSX.Element[], )
| 1 | import React from 'dom-chef'; |
| 2 | |
| 3 | export default function joinJsx( |
| 4 | separator: React.ReactNode, |
| 5 | items: readonly JSX.Element[], |
| 6 | ): JSX.Element { |
| 7 | return ( |
| 8 | <> |
| 9 | {items.map((item, index) => ( |
| 10 | <> |
| 11 | {index > 0 && separator} |
| 12 | {item} |
| 13 | </> |
| 14 | ))} |
| 15 | </> |
| 16 | ); |
| 17 | } |
no outgoing calls
no test coverage detected