var arr=[];for(var i = 0, l = this.arr.length; i < l; i++) { for(var j = i + 1; j < l; j++){ if (this.arr[i].batch === this.arr[j].batch){ j = ++i; } } this.arr.push(this.arr[i]);}