▲ 3 Array Hacks that you can do with ECMAScript 6 at www.jstips.co▼1 up and 0 down, posted by loverajoel 2842 days ago 2 comments
sylvainpv 2841 days ago. link parent 1 point ▲ ▼and number 3 in ES5: function unique(x,i,a){ return a.indexOf(x) === i } [1, 2, 3, 3].filter(unique)