JSFiddle - React, Tailwind, and code Playground
JavaScript
var seat = [true, true, false, true, true];
for(var i =0; i < seat.length; i++) {
if(seat) {
document.write(i + " индекс true" + "<br>")
}
}
var seat = [true, true, false, true, true];
for(var i =0; i < seat.length; i++) {
if(seat) {
document.write(i + " индекс true" + "<br>")
}
}