30秒学会 JavaScript 片段 – toKebabCase
Converts a string to kebab case. Break the string into words and combine them adding – as a separato...
Converts a string to kebab case. Break the string into words and combine them adding – as a separato...
Converts a given string into a list of words. Use String.split() with the supplied pattern to conver...
Converts a string to snake case. Break the string into words and combine them adding _ as a separato...
Removes non-printable ASCII characters. Use String.replaceAll() with a regular expression to remove ...
Converts a string to camelcase. Break the string into words and combine them capitalizing the first ...
Returns a string with whitespaces compacted. Use String.replaceAll() with a regular expression to re...
Checks if a string is an anagram of another string (case-insensitive, ignores spaces, punctuation an...
Returns a string with whitespaces compacted. Use String.prototype.replace() with a regular expressio...
Removes non-printable ASCII characters. Use a regular expression to remove non-printable ASCII chara...
Converts a string to kebab case. Break the string into words and combine them adding – as a separato...