Typescript Type Array Object Indexof