Posts

Showing posts with the label trimAll

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.

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.

javascript : String.trimAll()

  javascript : String .trimAll() Target: Applicable with  String  Data Type. Description : remove all extra spaces, tabs and new line characters from string and return string with single space between words. Syntax: String .trimAll() Usase: " hello     how     are     you? ".trimAll() It return string "hello how are you?" `MYJS (Make Your Java Scripting Easy) A     Library     of     Javascript     Extension     Methods [This library add many dom prototype extension methods to make easy javascript coding.]`.trimAll() "MYJS(Make Your Java Scripting Easy)A Library of Javascript Extension Methods[This library add many dom prototype extension methods to make easy javascript coding.]" var multiLineString=`line1                     line2                     line3`; multiLineString.trimAll(); "line1 li...