Recipes
Strings recipes
Search, replace, trim, pad and convert strings.
15 recipes
- Case-insensitive includesHow to Perform Case-Insensitive Includes in JavaScript
- Check if a string contains a substringHow to Check if a String Contains a Substring in JavaScript
- Check if a string is emptyHow to Check for an Empty String in JavaScript
- Check if a string starts withHow to Check if a String Begins with in JavaScript
- Convert a string to camelCaseHow to Use CamelCase in JavaScript
- Escape quotes in a stringHow to Escape Quotes in JavaScript
- Extract numbers from a stringHow to Extract Numbers from Strings in JavaScript
- Find all occurrences of a substringHow to Find All Occurrences with JavaScript
- Generate a UUIDHow to Generate GUIDs in JavaScript
- Get the last character of a stringHow to Get the Last Character of a String in JavaScript
- printf-style string formattingHow to Use printf in JavaScript
- Remove a substringHow to Remove Substrings from Strings in JavaScript
- Remove the first characterHow to Remove First Character from a String in JavaScript
- Replace all spacesHow to Replace All Spaces in JavaScript
- Replace multiple stringsHow to Replace Multiple Strings in JavaScript