Python Numpy Find Closest Value In Array Js Mdn