function compareDistance(
  a,
  b,
) {
  return a.distance > b.distance ? 1 : a.distance < b.distance ? -1 : 0;
}
/** Compare distance between 2 words (format like StringWithDistance). */
Compare distance between 2 words (format like StringWithDistance).
Compare distance between 2 words ( format like StringWithDistance ) .
function compareDistance(
  a,
  b,
) {
  return a.distance > b.distance ? 1 : a.distance < b.distance ? -1 : 0;
}
function compareDistance ( a , b , ) { return a . distance > b . distance ? 1 : a . distance < b . distance ? - 1 : 0 ; }
Compare distance between 2 words (format like StringWithDistance).
Compare distance between 2 words ( format like StringWithDistance ) .