[Solved] JavaScript, find lowest value in array of objects
You have 2 options: the faster one- a simple loop where you always keep the lowest one you found so far: let lowest = arr[0]; for(let i=1; i<0; i++) { if(arr[i] < lowest) // I used < for the example, enter your comparison logic here lowest = arr[i]; } The less efficient way, but might … Read more