Let's say I have the following array of objects:
[
{ name: 'january', score: 3.02 },
{ name: 'february', score: 1.02 },
{ name: 'march', score: 0 },
{ name: 'april', score: 12 },
]
What would be the quickest method for extract the position (index) of the element of the object with the highest score value...so, in the above case, the value would be index 3...
N.B. Scores are dynamic, and the "winning" element is the highest value...