We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71a380e commit b4234beCopy full SHA for b4234be
src/helpers/index.ts
@@ -16,5 +16,5 @@ export function shortString(value: string, limit = 3) {
16
}
17
18
export function ucFirst(value: string) {
19
- return `${(value[0] || "")?.toUpperCase()}${(value || "").slice(1, value.length)}`;
+ return `${(value[0] || "")?.toUpperCase()}${(value || "")?.slice(1, value.length)}`;
20
0 commit comments