function briefBody (body, typeBrief) {
  let newBody = ''
  if (typeBrief === 'postList' || typeBrief === 'postCategory') {
    let position
    if (body.length > 56) {
      for (let i = 0; i < body.length; i++) {
        if (i <= 56)
          newBody += body[i]
        if (i === 56)
          break
      }
      if (newBody[56] !== ' ' && newBody[56] !== '.' && newBody[56] !== ',') {
        for (let i = newBody.length; i > 0; i--) {
          if (newBody[i] === ' ' || newBody[i] === '.' || newBody[i] === ',') {
            position = i
            break
          }
        }
      }
      if (position !== 0)
        newBody = newBody.slice(0, position) + ' '
    }
    else
      newBody = body + ' '
  }
  else
    newBody = body
  return newBody
}
/**
 * @description Cut a string if this contain more than 65 characters
 * @param {string} body A body string of the post
 * @param {string} typeBrief
 * @return {string}
 */
@description Cut a string if this contain more than 65 characters
@param {string} body A body string of the post
@param {string} typeBrief
@return {string}
@description Cut a string if this contain more than 65 characters @param { string } body A body string of the post @param { string } typeBrief @return { string }
function briefBody (body, typeBrief) {
  let newBody = ''
  if (typeBrief === 'postList' || typeBrief === 'postCategory') {
    let position
    if (body.length > 56) {
      for (let i = 0; i < body.length; i++) {
        if (i <= 56)
          newBody += body[i]
        if (i === 56)
          break
      }
      if (newBody[56] !== ' ' && newBody[56] !== '.' && newBody[56] !== ',') {
        for (let i = newBody.length; i > 0; i--) {
          if (newBody[i] === ' ' || newBody[i] === '.' || newBody[i] === ',') {
            position = i
            break
          }
        }
      }
      if (position !== 0)
        newBody = newBody.slice(0, position) + ' '
    }
    else
      newBody = body + ' '
  }
  else
    newBody = body
  return newBody
}
function briefBody ( body , typeBrief ) { let newBody = '' if ( typeBrief === 'postList' || typeBrief === 'postCategory' ) { let position if ( body . length > 56 ) { for ( let i = 0 ; i < body . length ; i ++ ) { if ( i <= 56 ) newBody += body [ i ] if ( i === 56 ) break } if ( newBody [ 56 ] !== ' ' && newBody [ 56 ] !== '.' && newBody [ 56 ] !== ',' ) { for ( let i = newBody . length ; i > 0 ; i -- ) { if ( newBody [ i ] === ' ' || newBody [ i ] === '.' || newBody [ i ] === ',' ) { position = i break } } } if ( position !== 0 ) newBody = newBody . slice ( 0 , position ) + ' ' } else newBody = body + ' ' } else newBody = body return newBody }
@description Cut a string if this contain more than 65 characters
 @param {string} body A body string of the post
 @param {string} typeBrief
 @return {string}
@description Cut a string if this contain more than 65 characters @param { string } body A body string of the post @param { string } typeBrief @return { string }