Files
Cloud-Blog/app/utils/helper.ts
2025-12-26 21:56:11 +08:00

12 lines
295 B
TypeScript

// Utility functions
/**
* Makes the first character of a string uppercase.
* @param str - The string to transform.
* @returns The transformed string.
*/
export function makeFirstCharUpper(str: string): string {
if (!str) return "";
return str.charAt(0).toUpperCase() + str.slice(1);
}