get multiple highest number in array javascript code example
Example 1: javascript max number
MAX_SAFE_INTEGER = 9007199254740991
Example 2: javascript index of biggest number
arr.indexOf(Math.max(...arr))
MAX_SAFE_INTEGER = 9007199254740991
arr.indexOf(Math.max(...arr))