Skip to content

Instantly share code, notes, and snippets.

@mikeytown19
Created February 11, 2019 18:27
Show Gist options
  • Save mikeytown19/d3899d81e838b532eccf9ea239b096f7 to your computer and use it in GitHub Desktop.
Save mikeytown19/d3899d81e838b532eccf9ea239b096f7 to your computer and use it in GitHub Desktop.
Accum
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