Posts by user8789 • 301 points
1 post
-
30
votes7
answers46159
viewsQ: Remove repeated elements within a Javascript array
How to remove repeated elements within a Javascript array? I have for example: var array = ['foo', 'bar', 'foo']; And I want to remove all duplicates to get: ['foo', 'bar']…
javascriptasked user8789 301