Mike Heavers | code-item

PUBLISHED ON JUL 26, 2015 — IMPORTED FROM TUMBLR, LINK

var uniqueArray = duplicatesArray.filter(function(elem, pos) {
    return duplicatesArray.indexOf(elem) == pos;
});

Lovely.



goto