Created
March 13, 2018 04:57
-
-
Save haingdc/126e4b710cb23ece8ecbff9fe3477166 to your computer and use it in GitHub Desktop.
A Gentle Introduction to Functional JavaScript: Part 3
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
var addTweedleClass = partialFirstOfTwo(addClass, 'tweedle'); | |
var addBoyClass = partialFirstOfTwo(addClass, 'boy'); | |
var ids = ['DEE', 'DUM']; | |
var elements = map(document.getElementById.bind(document), ids); | |
elements = map(addTweedleClass, elements); | |
elements = map(addBoyClass, elements); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment