Answers for "only capitalize words that are at least 3 letters javascript"

1

javascript separate words by capital letter

"thisIsATrickyOne".split(/(?=[A-Z])/);
Posted by: Guest on March-16-2021
0

capitalize first letter of all word typescript

//Altered, "capitalize all words of a string" (javascript by Grepper on Jul 22 2019) answer to compatible with TypeScript

var myString = 'abcd abcd';

capitalizeWords(text){
  return text.replace(/(?:^|\s)\S/g,(res)=>{ return res.toUpperCase();})
};

console.log(capitalizeWords(myString));

//result = "Abcd Abcd"
Posted by: Guest on November-18-2020

Code answers related to "only capitalize words that are at least 3 letters javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language