I have an array
var arr = [{name:"Steve",toppedIn:"Biology"},
{name:"Carol",toppedIn:"Maths"},
{name:"Steve",toppedIn:"Chemistry"}];
I want to get the last index of a name in the arr. findIndex() give the first one, how do I use lastIndex in this case?