Convert string to Title Case with JavaScript

Опубликовано: 02 Октябрь 2024
на канале: Code Samples
223
0

#short
#javascript
#title-case
Is there a simple way to convert a string to Title Case? E.g. john smith becomes John Smith. I'm not looking for something complicated like John Resig's solution, just (hopefully) some kind of one- or two-liner.