Answers for "javascript for each word in string"

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 "javascript for each word in string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language