snapshot of https://github.com/mountain-loop/yaak.git (main, 2026-09-23; blobs > 131072B omitted)
This commit is contained in:
6
apps/yaak-client/lib/capitalize.ts
Normal file
6
apps/yaak-client/lib/capitalize.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export function capitalize(str: string): string {
|
||||
return str
|
||||
.split(" ")
|
||||
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
||||
.join(" ");
|
||||
}
|
||||
Reference in New Issue
Block a user