JS mendorong ke array jika ada item

if(this.items.indexOf(item) === -1) {
    this.items.push(item);
    console.log(this.items);
}
Colorful Cat