Shorthand AS

I’m trying to get better at coding but I’m having a hard time with this one.

How do I turn this into shorthand:


for(i in arrTours){
    if(arrTours*.ID == tourName){
        return i;
    }
}

Here is my try, but no go:


for(i in arrTours){
    arrTours*.ID == tourName ? return i : null;
}