Created
February 12, 2016 03:47
-
-
Save srkama/e3b6ace7b865dae1fb1a to your computer and use it in GitHub Desktop.
javascript arrow function
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
| // write the correct arrow function here | |
| var my_function = function(some_array) { | |
| return some_array.map(v => (v % 2 == 0 ? v + 1 : v - 1)); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment