Last active
September 3, 2017 23:07
-
-
Save andycarrell/6af1c9012b22d5f942169e2b114f981f 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 spicify = ([first, ...rest]) => [...rest].reduce((acc, i) => `${acc} ${i.toUpperCase()}`, first.toUpperCase()); | |
spicify('spicey'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment