Created
December 10, 2014 19:52
-
-
Save devdays/d84946b38fbf3c050ee1 to your computer and use it in GitHub Desktop.
Object Javascript ECMAScript 6 arrow functions
This file contains 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
//today | |
let squares = [1, 2 , 3].map(function (x) { | |
return x * x | |
)); | |
// is simplified to | |
let squares = [1, 2, 3].mpa (x => x * x); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment