My Snippets
My Collections
Search Engine
Pricing
Community
titlecase
unknown
javascript
3 years ago
96 B
2
Indexable
function titleCase(str) { return str.toLowerCase().replace(/\b\w/g, s => s.toUpperCase()); }