Updates
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export default function lowerToTitleCase(str: string) {
|
||||
return str
|
||||
.replace(/_|-/g, " ")
|
||||
.split(" ")
|
||||
.map(
|
||||
(word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()
|
||||
)
|
||||
.join(" ");
|
||||
}
|
||||
Reference in New Issue
Block a user