Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Ejemplo 2, respaldando arreglo
const canciones = [
"I can't win",
"Hammer To Fall",
"Let's dance",
"Rock And Roll All Nite"
];
console.log("Canciones original: ", canciones);
const cancionesMezcladas = Array.from(canciones);
mezclarArreglo(cancionesMezcladas);
console.log("Canciones mezcladas: ", cancionesMezcladas);
console.log("Canciones original, de nuevo: ", canciones);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment