I have a array of objects this way.
0:
cardLast4Digits: "0664"
cardType: "GIFT_CARD"
__proto__: Object
1:
cardLast4Digits: "5551"
cardType: "CREDIT_CARD"
__proto__: Object
I want to loop through this array of object and find if cardType is "GIFT_CARD". Once i find it, i want to get that object as a result. Output should then be
0:
cardLast4Digits: "0664"
cardType: "GIFT_CARD"
__proto__: Object
Can someone please suggest me how to do this withv ramda.