-
-
Save NoahDavidATL/0485dc1ce34d5b63095093652456c69b to your computer and use it in GitHub Desktop.
Nesting function composition
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 toSlug = input => encodeURIComponent(join('-')(map(toLowerCase)(split(' ')(input)))); | |
console.log(toSlug('JS Cheerleader')); // 'js-cheerleader' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment