I have two arrays.
let runArray = ['Welcome', 'Hello']
let data = [{
Node:'Good',
Session:'2',
Run:'Welcome',
Run_Group:'Display',
Elapsed_Ms: '1000'
}]
I have like 2600 objects in data
array and like 50 of them in runArray
. And the number of elements could be more.
The point is to compare every index in runArray
with data[index].Run
propery so I can calculate the average of Elapsed_Ms
property (from data).
Is there any options?