Completed
Push — master ( ef468c...cf2011 )
by Mark
15s queued 12s
created

src/Util/Str/SnakeCase.ts   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 3
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
wmc 2
mnd 0
bc 0
fnc 2
bpm 0
cpm 1
noi 0
1
export default function(name: string): string {
2
    return `${name[0].toLowerCase()}${name.slice(1).replace(/([A-Z])/g, '_$1').toLowerCase()}`;
3
}