Created
November 2, 2020 23:21
-
-
Save heanfig/b47171cf8ed4d9ce7c27f1088d3d9d13 to your computer and use it in GitHub Desktop.
symetric differnce
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
function sym(...args) { | |
return args.reduce( (a,b,i) => { | |
console.log('compara',a,'con',b); | |
// Ciclo 1 => Compara [] con [3, 3, 3, 2, 5], | |
// Ciclo 2 => Compara [] con [2, 1, 5, 7], | |
// Ciclo 3 => Compara [] con [3, 4, 6, 6], | |
return []; | |
},[]); | |
} | |
console.log(sym([3, 3, 3, 2, 5], [2, 1, 5, 7], [3, 4, 6, 6])); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment