Posts

Showing posts with the label String.toKebabCase

javascript : String.toKebabCase()

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