Underscore.js Arrays: Uniq
HTML
<script src="http://documentcloud.github.com/underscore/underscore-min.js"></script>
<a target="parent" href="http://underscorejs.org/#uniq">Learn More</a>
JavaScript
var testUniq = _.uniq([1, 2, 1, 3, 1, 4]);
console.log(testUniq);
//[1, 2, 3, 4]