Skip to content

Instantly share code, notes, and snippets.

@BrunoGiubilei
Created November 19, 2019 12:13
Show Gist options
  • Save BrunoGiubilei/236ac2f9f3f6671ca4954431d844cf65 to your computer and use it in GitHub Desktop.
Save BrunoGiubilei/236ac2f9f3f6671ca4954431d844cf65 to your computer and use it in GitHub Desktop.
Reduzir um array para obter somente registros únicos
.reduce((a, d) => {
if (!a.includes(d)) { a.push(d); } return a;
}, [])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment