Created
September 30, 2019 00:25
-
-
Save parzibyte/73ec42d71b11ff8520985f14dd289b1b 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) => { | |
return 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