felvieira
10/19/2018 - 3:39 AM

Verificar se objeto existe em um array

if (cart.some(e => e.title === product.title)){
  
}