const isBeforeDate = (dateA, dateB) => dateA < dateB;