Skip to content

Instantly share code, notes, and snippets.

@haingdc
Created March 13, 2018 04:55
Show Gist options
  • Select an option

  • Save haingdc/334b73f46c3d59db49049391c346ec4c to your computer and use it in GitHub Desktop.

Select an option

Save haingdc/334b73f46c3d59db49049391c346ec4c to your computer and use it in GitHub Desktop.
A Gentle Introduction to Functional JavaScript: Part 3
var ids = ['DEE', 'DUM'];
var elements = map(document.getElementById.bind(document), ids);
elements = map(addTweedleClass, elements); // 🌟
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment