Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 3 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | export default function(name: string): string { |
||
2 | return `${name[0].toLowerCase()}${name.slice(1).replace(/([A-Z])/g, '_$1').toLowerCase()}`; |
||
3 | } |