Created
February 11, 2019 18:27
-
-
Save mikeytown19/d3899d81e838b532eccf9ea239b096f7 to your computer and use it in GitHub Desktop.
Accum
This file contains hidden or 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
let accum = s => s.split('').map((item, index) => item.toUpperCase() + item.toLowerCase().repeat(index)).join('-'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment