Menu
This is collection.productCollections:
[
{
"productId": 1,
"collectionId": 5
},
{
"productId": 6,
"collectionId": 5
},
{
"productId": 2,
"collectionId": 5
},
{
"productId": 1,
"collectionId": 5
}
]
How can I determine if my other variable “id” matches any of the productId’s in that object? Using javascript.