packages/embed-js/src/index.js
function combineEmbedsText(embeds) {
  return embeds
    .sort((a, b) => a.index - b.index)
    .map(({ content }) => content)
    .join(" ")
}
function combineEmbedsText(embeds) {
  return embeds
    .sort((a, b) => a.index - b.index)
    .map(({ content }) => content)
    .join(" ")
}
function combineEmbedsText ( embeds ) { return embeds . sort ( ( a , b ) => a . index - b . index ) . map ( ( { content } ) => content ) . join ( " " ) }
Returns the embed code to be added at the end of original string.
@param embeds
@returns {string}
Returns the embed code to be added at the end of original string .