Typescript Type Array Object Indexof Arduino