Created
June 2, 2021 12:41
-
-
Save edwingustafson/8da8067fa4894662509116aae39290c6 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
// https://www.facebook.com/Heavydsparks/photos/a.1432147377066939/2976473412634320/ | |
const f = (n) => n * (n + 1); | |
console.log([9, 8, 7, 6, 3].map(f)); | |
// Output: [ 90, 72, 56, 42, 12 ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment