nearest-date (npm): Given an array of dates, this module will find the date nearest to a given target date. Can be used to find the nearest number as well
Keywords: distance|date|close|closest|relative|near|nearest|index