I would like to find the most concise way to find the index of the largest number in an array.
Example:
var array = [0,6,7,7,7];
The function should return [2,3,4]
Note: it is not the same as Return index of greatest value in an array
Why? There the answers return only one of the largest. e.g var array = [0,6,7,7,7]
would return 2 or 4.
Update:
Quite a few people have marked this as a duplicate question. IT IS NOT! I explained the difference in the note above. Where is the supposed answer to what I am asking in Return index of greatest value in an array
I am also disheartened by the fact my first question was down voted almost immediately.
Update: Found another answer at Return index of greatest value in an array