0
Taking the payload below, I need to output the average of each reading.
For example the readings for 2 are 1, 4, 7. 1+4+7/3 = 4
Final result should be
[
[2, 4],
[4, 5],
[6, 6]
]
My effort so far seems to work.
const payload = [
[
[2, 1],
[4, 2],
[6, 3]
],
[
[2, 4],
...