declare const array: string[]; for (const i in array) { console.log(array[i]); } for (const i in array) { console.log(i, array[i]); }