Skip to content

Instantly share code, notes, and snippets.

@jamigibbs
Created June 19, 2018 01:37
Show Gist options
  • Save jamigibbs/1b69fabfe07ed7ce18adc1675faeea64 to your computer and use it in GitHub Desktop.
Save jamigibbs/1b69fabfe07ed7ce18adc1675faeea64 to your computer and use it in GitHub Desktop.
const closest = distance.sort( (a, b) => a.dist - b.dist )[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment