So I have multiple objects in my initial state numbered from EV1-EV15, how can I grab the data in a loop? Something like this:
for (var i = 0; i < 15; i++) {
percentage = (0.5 / this.state.EVi.timeToFull) * 100;
newSOC = Math.round((this.state.EVi.soc + percentage) * 10) / 10;
if (newSOC >= 100) {
newSOC = 100;
}
array.push(newSOC);
}