Created
March 7, 2020 16:45
-
-
Save parzibyte/142ecfbf09c2860dfdd3a8d1cb976ba4 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
let arreglo = ["Luis", "Parzibyte"]; | |
// Eliminar referencia con el operador de propagación | |
let otroArreglo = [ ...arreglo ]; | |
arreglo[0] = "Luis Cabrera"; | |
console.log("arreglo: ", arreglo); | |
console.log("otroArreglo: ", otroArreglo); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment