import React from "react" ; export default function intersperseNodes ( nodes , wedge ) { return nodes . map ( ( node , index ) => ( < React . Fragment key = { index } > { node } { index !== nodes . length - 1 ? wedge : null } < /React.Fragment>)); }