Typescript Index Of Object In Array