Created
November 2, 2020 23:31
-
-
Save heanfig/51eaf3b6917ae6dc6a18ad61ca2f2d48 to your computer and use it in GitHub Desktop.
symetric 3
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) => { | |
const valoresA = a.filter(item => !b.find(aux=>aux===item)); | |
console.log(valoresA) // [] | |
return valoresA | |
},[]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment