duplicate

by Sumit Ridhal

JavaScript

const array = ['India' , 'Australia' , 'Bangladesh' , 'India' , 'India' , 'New Zealand' , 'New Zealand' , 'Pakistan' , 'Pakistan' , 'West Indies'];


_.each(_.uniq(_.filter(array, function(v) {
    return _.filter(array, function(v1) {
        return v1 === v;
    }).length > 2;
})), function(i) {
    console.log(i);
});