getClosestDate

external fun getClosestDate(date: Date, dates: Array<Date>): Date

Get closest date from array of dates.