Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
finally done right solution in Clear category for Nearest Value by vincent.tscherter
var nearestValue = (v, s) => v.sort((a,b) => (s-a)**2 - (s-b)**2 || a-b )[0]
May 19, 2020
Comments: