Created
October 19, 2020 21:22
-
-
Save MeetMartin/bd54d944cdcb5aa2a1d6a044d43649a2 to your computer and use it in GitHub Desktop.
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 myList = [1, 2, 3]; | |
| const myChecker = a => a > 1; // filter only numbers larger than 1 | |
| const myMapper = a => a + 1; // make all numbers + 1 | |
| filterMap(myChecker, myMapper, myList); // => [3, 4] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment