Javascript – Can't find the index of the matching object in a array of object
I have a data var data = { "variants": [{ "quantity": "20", "varientId": 8, "currency": "YEN", "extraField": { "Size": "10", "Color": "Red", "Material": "Denim" }, "price": "199" }, { "quantity": "15", "varientId": 10, "currency": "YEN", "extraField": { "Size": "9", "Color":…