Skip to content

Commit

Permalink
style(camelCase): Provide return type
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Sep 8, 2022
1 parent 6cc2574 commit 559c398
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/internal/camelCase.ts
@@ -1,7 +1,7 @@
function camelCase(kebobCase: string) {
function camelCase (kebobCase: string): string {
return kebobCase.replace(/-([a-z])/g, (kk) => {
return kk[1].toUpperCase();
});
return kk[1].toUpperCase()
})
}

export default camelCase

0 comments on commit 559c398

Please sign in to comment.