Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert camelcase to sentence case javascript

var text = 'helloThereMister';
var result = text.replace( /([A-Z])/g, " $1" );
var finalResult = result.charAt(0).toUpperCase() + result.slice(1);
console.log(finalResult);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #camelcase #sentence #case #javascript
ADD COMMENT
Topic
Name
2+4 =