Created
November 19, 2019 12:13
-
-
Save BrunoGiubilei/236ac2f9f3f6671ca4954431d844cf65 to your computer and use it in GitHub Desktop.
Reduzir um array para obter somente registros únicos
This file contains 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
.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