Created
November 7, 2019 09:08
-
-
Save DanShappir/4396ee0f60aaba532130bbe9f24dcf21 to your computer and use it in GitHub Desktop.
Double values of items in an array using declarative approach
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 doubled = numbers.map(v => 2 * v); // numbers is an array |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment