src/util/text.js
import lowerCase from 'lodash.lowercase'
import kebabCase from 'lodash.kebabcase'
import upperFirst from 'lodash.upperfirst'
export const sentenceCase = (str = '') => {
const l = lowerCase(str).split(' ')
return `${upperFirst(l[0])} ${l.slice(1).join(' ')}`
}
export const slugify = (str = '') => kebabCase(str)