Typescript Type Array Object Indexof In Js