Typescript Type Array Object Indexof C