Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

string to pascal case

function toPascalCase(str){
    return (' ' + str).toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g, (m, chr) => {
        return chr.toUpperCase()});
}
Source by javascriptf1.com #
 
PREVIOUS NEXT
Tagged: #string #pascal #case
ADD COMMENT
Topic
Name
8+8 =