Add toUpperCase function (#2697)
This commit is contained in:
parent
ca2230f690
commit
2118fadc48
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
export function capitalize(s: string): string {
|
||||
return s.charAt(0).toUpperCase() + s.slice(1).toLowerCase();
|
||||
return toUpperCase(s.charAt(0)) + s.slice(1).toLowerCase();
|
||||
}
|
||||
|
||||
export function toUpperCase(s: string): string {
|
||||
return s.toUpperCase();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue