I have an array of object that holds two objects. Each object has a couple properties; one being dealerNo
. Given the value of dealerNo
, how would I get the index of that object?
I have an array of object that holds two objects. Each object has a couple properties; one being dealerNo
. Given the value of dealerNo
, how would I get the index of that object?
Use
.findIndex
: