parent
47a84a86e8
commit
96be4a41b2
3 changed files with 19 additions and 11 deletions
@ -0,0 +1,9 @@ |
||||
import { capitalize } from 'lodash'; |
||||
|
||||
const disassembleCamel = (value: string) => { |
||||
const spaced = value.replace(/([a-z\d])([A-Z])/g, '$1 $2'); |
||||
|
||||
return capitalize(spaced); |
||||
}; |
||||
|
||||
export default disassembleCamel; |
Loading…
Reference in new issue