Created
September 30, 2019 00:27
-
-
Save parzibyte/b60d618ab61ad5ec93a6dfc635de2f94 to your computer and use it in GitHub Desktop.
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
/** | |
* Ejemplos y explicación de Array Map | |
* en JavaScript | |
* | |
* https://parzibyte.me/blog | |
* | |
*/ | |
const numerosString = ["20", "515", "800"]; | |
const numerosInt = numerosString.map(numeroComoString => parseInt(numeroComoString)); | |
console.log(numerosInt); | |
/* | |
Salida: | |
[ 20, 515, 800 ] | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment