For anyone out there who needs this I just have a feeling. (Get the smallest number with multi values in the array) Thanks to Akexis answer.
if you have let's say an array of Distance and ID and ETA in minutes So you do push maybe in for loop or something
Distances.push([1.3, 1, 2]); // Array inside an array.
And then when It finishes, do a sort
Distances.sort();
So this will sort upon the first thing which is Distance here. Now we have the closest or the least is the first you can do
Distances[0] // The closest distance or the smallest number of distance. (array).