Skip to content

Commit

Permalink
Merge pull request #6 from elsoul/update
Browse files Browse the repository at this point in the history
rm async
  • Loading branch information
POPPIN-FUMI authored Dec 11, 2023
2 parents bc97e79 + 9a36821 commit 90e8e71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/string/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const toCamelCase = (str: string): string => {
* const upperCaseString = await toUpperCase(inputString);
* console.log(upperCaseString); // "Hello"
*/
export const toUpperCase = async (str: string): Promise<string> => {
export const toUpperCase = (str: string): string => {
return str.charAt(0).toUpperCase() + str.slice(1)
}

Expand All @@ -95,6 +95,6 @@ export const toUpperCase = async (str: string): Promise<string> => {
* const lowerCaseString = await toLowerCase(inputString);
* console.log(lowerCaseString); // "world"
*/
export const toLowerCase = async (str: string): Promise<string> => {
export const toLowerCase = (str: string): string => {
return str.charAt(0).toLowerCase() + str.slice(1)
}

0 comments on commit 90e8e71

Please sign in to comment.