I have an object, inside that object, I have two properties. The first property is of the boolean type; the second property is of type boolean []. I need to put all the values of the array of the second property in true. I suppose I could do that with a forEach, so that I can go through the array and put true in each array that I go through. But I do not know very well how I can do it, for now, I have this ...
selectCard(i) {
this.cards[i].valueFlights.forEach(function(check, indexFlight) {
})
}