lib/builders/base.js
function smartComment(description/*:string*/ = '', links/*: string[]*/ = []) {
  const descriptionLines = description.replace(/(.{1,72}\s)\s*?/g, '\n * $1')
  const linksLines = links.reduce((acc, link) => (
    `${acc} * @see ${link}\n`
  ), '')

  return commentBlock(`*${descriptionLines}\n${linksLines} `)
}
function smartComment(description/*:string*/ = '', links/*: string[]*/ = []) {
  const descriptionLines = description.replace(/(.{1,72}\s)\s*?/g, '\n * $1')
  const linksLines = links.reduce((acc, link) => (
    `${acc} * @see ${link}\n`
  ), '')

  return commentBlock(`*${descriptionLines}\n${linksLines} `)
}
function smartComment ( description /*:string*/ = '' , links /*: string[]*/ = [ ] ) { const descriptionLines = description . replace ( / (.{1,72}\s)\s*? / g , '\n * $1' ) const linksLines = links . reduce ( ( acc , link ) => ( ` ${ acc } ${ link } \n ` ) , '' ) return commentBlock ( ` ${ descriptionLines } \n ${ linksLines } ` ) }
Split description to lines add return AST node
Split description to lines add return AST node