Array.push() and unique items January 3, 2023 by Tarik Yep, it’s a small mistake. if(this.items.indexOf(item) === -1) { this.items.push(item); console.log(this.items); }