The JavaScript snippet collection contains a wide variety of ES6 helper functions. It includes helpers for dealing with primitives, arrays and objects, as well as algorithms, DOM manipulation functions and Node.js utilities.
JavaScript, String
Compacts whitespaces in a string.
JavaScript, String
Checks if the given string is an absolute URL.
JavaScript, String
Removes non-printable ASCII characters.
JavaScript, String
Returns a string with whitespaces removed.
JavaScript, String
Removes HTML/XML tags from string.
JavaScript, Math
Formats a number using fixed-point notation, if it has decimals.
JavaScript, String
Wraps a string to a given number of characters using a string break character.
JavaScript, String
Capitalizes the first letter of every word in a string.
JavaScript, String
Escapes a string to use in a regular expression.
JavaScript, String
Convert tabs to spaces, where each tab corresponds to count
spaces.
JavaScript, String
Checks if a string contains only alphanumeric characters.
JavaScript, String
Normalizes line endings in a string.
JavaScript, Node
Converts a tilde path to an absolute path.
JavaScript, String
Returns the length of a string in bytes.
JavaScript, String
Checks if a string contains only alpha characters.