Answers for "split string at capital character and capitalize first letter js"

32

javascript capitalize first letter

const lower = 'this is an entirely lowercase string';
const upper = lower.charAt(0).toUpperCase() + lower.substring(1);
Posted by: Guest on March-04-2020
1

js split string on capital letter second

'ThisIsTheStringToSplit'.split(/(?=[A-Z])/); // positive lookahead to keep the capital letters
Posted by: Guest on January-27-2021

Code answers related to "split string at capital character and capitalize first letter js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language