src/index.js
function _getAcronym(string) {
  let acronym = ''
  const wordsInString = string.split(' ')
  _each(wordsInString, wordInString => {
    const splitByHyphenWords = wordInString.split('-')
    _each(splitByHyphenWords, splitByHyphenWord => {
      acronym += splitByHyphenWord.substr(0, 1)
    })
  })
  return acronym
}
function _getAcronym(string) {
  let acronym = ''
  const wordsInString = string.split(' ')
  _each(wordsInString, wordInString => {
    const splitByHyphenWords = wordInString.split('-')
    _each(splitByHyphenWords, splitByHyphenWord => {
      acronym += splitByHyphenWord.substr(0, 1)
    })
  })
  return acronym
}
function _getAcronym ( string ) { let acronym = '' const wordsInString = string . split ( ' ' ) _each ( wordsInString , wordInString => { const splitByHyphenWords = wordInString . split ( '-' ) _each ( splitByHyphenWords , splitByHyphenWord => { acronym += splitByHyphenWord . substr ( 0 , 1 ) } ) } ) return acronym }
Generates an acronym for a string.

@param {string} string
@returns {string}
@private
@examples
_getAcronym('i love candy') // => 'ilc'
_getAcronym('water-fall in the spring-time') // => 'wfitst'
Generates an acronym for a string .