find-closest

Like Array.prototype.find, but for finding the closest match.

Browse on unpkg