javascript : String.toPascalCase()
javascript : String .toPascalCase() Target: Applicable with String Data Type. Description : convert string to a single word in camel case format. Every words first letter in capital letter. Note: convert into PascalCase from camelCase, snake_case and kebab-case. Syntax: String .toPascalCase() Usase: " hello how are you ? ".toPascalCase() It return string "HelloHowAreYou?" "hello-how-are-you-?".toPascalCase() It return string "HelloHowAreYou?" "hello_how_are_you_?".toPascalCase() It return string "HelloHowAreYou?" "helloHowAreYou?".toPascalCase() It return string "HelloHowAreYou?" Download MYJS.js Include in you project landing page (master page) and it will extends your DOM and JavaScript Objects.