Skip to content

Instantly share code, notes, and snippets.

@haingdc
Created February 28, 2018 10:35
Show Gist options
  • Select an option

  • Save haingdc/8a22572e9ccd520697ff321b69cb3a28 to your computer and use it in GitHub Desktop.

Select an option

Save haingdc/8a22572e9ccd520697ff321b69cb3a28 to your computer and use it in GitHub Desktop.
A Gentle Introduction to Functional JavaScript: Part 2
var colours = [
'red', 'orange', 'yellow',
'green', 'blue', 'purple'
];
colours.forEach(addColour);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment