Start flying section
This commit is contained in:
@@ -11,3 +11,10 @@ export function classNames(
|
||||
}
|
||||
return classes.join(" ")
|
||||
}
|
||||
|
||||
export function titlecase(s: string): string {
|
||||
return s
|
||||
.split(" ")
|
||||
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
||||
.join(" ")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user