Last active
September 9, 2016 01:39
-
-
Save Shobhit1/7e32d9ee293aadc056173ed39c5260f1 to your computer and use it in GitHub Desktop.
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
const nameToURL = name => encodeURIComponent( | |
name.split(' ') | |
.map(str => str.toLowerCase()) | |
.join('-') | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment