aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/helpers/common.util.js
blob: 0c02481e6ee80768fe72cc4bf44f2773882f5b3c (plain) (blame)
1
2
3
4
5
export function camelCaseToCapitalize (str = '') {
  return str
    .replace(/([A-Z])/g, ' $1')
    .replace(/^./, str => str.toUpperCase())
}