Answers for "react capitalize first letter of every word"

2

javascript name capitalization

function capitalizeName(name) {
  return name.replace(/\b(\w)/g, s => s.toUpperCase());
}
Posted by: Guest on May-17-2020

Code answers related to "react capitalize first letter of every word"

Code answers related to "Javascript"

Browse Popular Code Answers by Language