I need to check a JavaScript array to see if there are any duplicate values. What\'s the easiest way to do this? I just need to find what the duplicated values are - I don\'
using underscore.js
function hasDuplicate(arr){ return (arr.length != _.uniq(arr).length); }