Basically I have an array of objects. Each object has an array which I need to change the values.
I'm using React, so this is a state:
[
{
"points": [
60,
5,
60,
20,
70,
20,
70,
15
],
"finished": true,
"color": "#6292C6"
},
{
"points": [
80,
15,
80,
25,
90,
25
],
"finished": true,
"color": "#3FD971"
},
{
"cultureName": "",
"points": [],
"finished": false
}
]
What's the best way to change the points values of this state? I need to multiply them by a factor (4.96).