I have array that contains object like this:
products: [{
title: 'this is title',
id: 1
},
title: 'this is another product',
id: 2
}]
I want to check if products include id: 1
.
Here is my try:
arr.includes(products[id, product.id])
but it's not working.