Скажем, у меня
myArray = ['item1', 'item2']
Я пробовал
for (var item in myArray) {console.log(item)}
Он печатает 0 1
Я хочу, чтобы item1 элемент2
Есть ли другой синтаксис, который работает без использования
for (var i = 0; i < myArray.length; i++)