Created
March 7, 2017 10:58
-
-
Save jonathanweiss/3f529f3d5786b5e888ad7bdff036acab to your computer and use it in GitHub Desktop.
Same example in ES6
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
'asdf klkl wererw cvxcxv' | |
.split(' ') | |
.reduce((list, word) => list.length < 2 ? [...list, word] : list, []) | |
.map(word => word.substring(0, 1).toUpperCase()) | |
.join(''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment