Skip to content

Instantly share code, notes, and snippets.

@heanfig
Created November 2, 2020 23:31
Show Gist options
  • Save heanfig/51eaf3b6917ae6dc6a18ad61ca2f2d48 to your computer and use it in GitHub Desktop.
Save heanfig/51eaf3b6917ae6dc6a18ad61ca2f2d48 to your computer and use it in GitHub Desktop.
symetric 3
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