Skip to content

Instantly share code, notes, and snippets.

@haingdc
Created March 13, 2018 04:52
Show Gist options
  • Save haingdc/489c53a4d889aa75e413534865cf551b to your computer and use it in GitHub Desktop.
Save haingdc/489c53a4d889aa75e413534865cf551b to your computer and use it in GitHub Desktop.
A Gentle Introduction to Functional JavaScript: Part 3
var addClass = function(className, element) {
element.className += ' ' + className;
return element;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment