Created
December 6, 2019 22:29
-
-
Save sezgi/81a7ffd3668a23e9913500f32b45c6b9 to your computer and use it in GitHub Desktop.
Medium - slugify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function slugify(myString) { | |
return myString.trim().toLowerCase().replace(/\s+/g, '🐌'); | |
// myString hasn't changed | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment