String

String manipulation and formatting functions

String

String manipulation and formatting functions

Functions

  • camelCase: Converts the input string to camel case.
  • contains: Checks if the input string or array contains the specified value.
  • endsWith: Checks if the input string ends with the specified substring.
  • lowercase: Converts the input string to lowercase.
  • pad: Pads the input string to the specified width.
  • pascalCase: Converts the input string to pascal case.
  • replace: Replaces occurrences of a specified string with a replacement string.
  • split: Splits the input string into an array of substrings.
  • startsWith: Checks if the input string starts with the specified substring.
  • substring: Gets a substring of a string.
  • substringAfter: Returns the substring after the first occurrence of the character sequence chars in str.
  • substringBefore: Returns the substring before the first occurrence of the character sequence chars in str.
  • trim: Trims whitespace from both ends of a string.
  • uppercase: Converts the input string to uppercase.

Transforms

  • camelCase: Converts the input string to camel case.
  • contains: Checks if the input string or array contains the specified value.
  • endsWith: Checks if the input string ends with the specified substring.
  • lowercase: Converts the input string to lowercase.
  • pad: Pads the input string to the specified width.
  • pascalCase: Converts the input string to pascal case.
  • replace: Replaces occurrences of a specified string with a replacement string.
  • split: Splits the input string into an array of substrings.
  • startsWith: Checks if the input string starts with the specified substring.
  • substring: Gets a substring of a string.
  • substringAfter: Returns the substring after the first occurrence of the character sequence chars in str.
  • substringBefore: Returns the substring before the first occurrence of the character sequence chars in str.
  • trim: Trims whitespace from both ends of a string.
  • uppercase: Converts the input string to uppercase.
Cookie Notice

We use cookies to enhance your browsing experience.