Typescript Test For String Javascript Mdn For Loop