Typescript Get Index Of Object In Array By Property