Where do you have these “points”? In an array? An object?
If it’s an array, you can sort the array and then just use the 5 highest values in the array.
Where do you have these “points”? In an array? An object?
If it’s an array, you can sort the array and then just use the 5 highest values in the array.