Posts by David Jr. • 81 points
1 post
-
8
votes7
answers46159
viewsA: Remove repeated elements within a Javascript array
You can use the Set, entered in Ecmascript 2015 (ES6): const arr = [1, 1, 2, 2, 3, 3, "teste", "teste"]; const arrUnique = [...new Set(arr)]; Do not attempt to use this medium to remove duplicate…
javascriptanswered David Jr. 81