Comparing values in a forEach

0

I wanted to ask I have an array of objects and I need to compare the first value of the array with the second one and it has to be within the range of valueFrom to valueTo but I can not get it to achieve what I need Ahem: if I have a range of 30 - 40 I can not put another value within that range

I leave the fiddle below:

link

    
asked by Venamus 20.11.2018 в 04:26
source

0 answers