Find Index Of Element In Array Of Objects In Typescript