Skip to content

Commit e52a4c2

Browse files
committed
other: Add string utility.
1 parent ec7180b commit e52a4c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/string.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function uppercaseFirst(string) {
2+
return string.substr(0, 1).toUpperCase() + string.substr(1)
3+
}

0 commit comments

Comments
 (0)