Created
March 13, 2018 04:51
-
-
Save haingdc/3ba878533dad51ab5e637218954253f8 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 numbers = [1, 2, 3]; | |
var doubledArray = map(function(x) { return x * 2}, numbers); | |
console.log(doubledArray); | |
//=> [ 2, 4, 6 ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment