Last active
June 7, 2018 14:34
-
-
Save masaeedu/139238c2fcd3ae64a973452a70193b28 to your computer and use it in GitHub Desktop.
mysillypackage
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
| const sillify = input => input | |
| .split("") | |
| .map((c, i) => i % 2 === 0 ? c.toLowerCase() : c.toUpperCase()) | |
| .reduce((p, c) => p + c) | |
| module.exports = { sillify } |
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
| { | |
| "name": "mysillypackage", | |
| "version": "0.3.0" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment