showing results for - "javascript lowercase string except first letter of every word"
Edoardo
24 Feb 2019
1var text = "foo bar loo zoo moo";
2text = text.toLowerCase()
3    .split(' ')
4    .map((s) => s.charAt(0).toUpperCase() + s.substring(1))
5    .join(' ');