Answers for "javaSript string first words to upper case"

0

javaSript string first words to upper case

function titleCase(str) {
  return str.toLowerCase().replace(/(^|\s)\S/g, L => L.toUpperCase());
}
Posted by: Guest on August-21-2021

Code answers related to "javaSript string first words to upper case"

Code answers related to "Javascript"

Browse Popular Code Answers by Language