I have an array of objects. Each object has two fields "type" and "position". I want to know if there are any objects (in this array) with same "type" and "position" (and get it). How can I realize it? I know how to filter array, but how to compare with other objects?
var array = forms.filter(function (obj) {
return obj.type === 100
});