Created
September 11, 2019 21:52
-
-
Save jackpordi/d5ee763b3be992f431d5a55008f7e6dd to your computer and use it in GitHub Desktop.
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
const myArray = [1, 4, 9, 16]; | |
const mappedArray = myArray.map( x => x * 2 ); | |
// Same output as using timesTwo | |
console.log(mappedArray); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment