Unique array by object property
问题 How do I make an array of objects unique based on a property? In this instance, "field": 0: Object field: "name" operator: "eq" value: "d" 1: Object field: "gridSearch" operator: "contains" value: "1" 2: Object field: "gridSearch" operator: "contains" value: "12" For reference here is the bit of code I'm using where this problem is concerned: $('#gridSearch').keyup(function() { var currentFilters = $('.k-grid').data("kendoGrid").dataSource.filter(); currentFilters.filters.push({ field: