Build a TypeScript Slugify Utility
Write a TypeScript slugify function that lowercases words, preserves digits, collapses punctuation into single hyphens, and handles empty input.
Featuring
JJason Torres
TypeScript
Challenge overview
- Format
- Build a Function
- Category
- TypeScript
- Difficulty
- Beginner
typescriptstringsregular-expressionsnormalization
Keep practicing
More coding challenges
HTML & CSS · Beginner
Build a Workshop Signup Form
Build an accessible workshop signup form with connected labels, appropriate controls, and native required-field validation, using only HTML.
View challengeJavaScript · Advanced
Build an Async Task Pool
Build a JavaScript task pool that limits concurrent promises, starts queued work as slots open, preserves result order, and rejects on failure.
View challengeHTML & CSS · Intermediate
Build an Editorial Pull Quote
Add a semantic editorial pull quote with figure, blockquote, caption, and citation markup, then lay it out with CSS Grid and a decorative mark.
View challenge

