How to find the first highest number when there are more than one in a Javascript Object?
I have an array of objects that I want to find the highest value of the key 'saving'. I've used this: maxSaving = tableResults.reduce((prev, current)=> ( (prev.saving > current.saving) ? prev : current),0) Which correctly gives me the highest result…