How to Slugify a String in JavaScript
Imagine you have a string like this "Mind Body Spirit (2023)" and you want to make it a slug like this "mind-body-spirit-2023".
Mind Body Spirit is the title of a film released in 2023.
You might ask what's the point? This is usually used