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