Typescript Array Contains String Js Mdn For Loop