We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4426166 commit 1d6defaCopy full SHA for 1d6defa
src/utils.ts
@@ -1,8 +1,5 @@
1
2
3
export function capitalized(s: string) {
4
- if (s.length > 1) {
5
- return s[0].toUpperCase() + s.slice(1);
6
- }
7
- return s;
+ return s.length > 1 ? s[0].toUpperCase() + s.slice(1) : s;
8
}
0 commit comments