var arr = [{id: 22, name: 'zs'}, {id: 23, name: 'ls'}, {id: 23, name: 'ls'},{id: 22, name: 'zs'},{id: 22, name: 'zs'}] console.log(arr) for (var i = 0, len = arr.length; i < len; i++) { for (var j = i + 1; j < arr.length; j++) { if (arr[i].id === arr[j].id) { arr.splice(j, 1) } } } console.log(arr)