М
Size: a a a
М
M
М
L
L
CM
L
М
A
С
С
С
С
ДУ
ЛХ
function inHoursRange(from, to) {
const fromDate = new Date(new Date().setHours(from))
const toDate = new Date((from > to ? new Date(+new Date() + 24 * 60 * 60 * 1000) : new Date()).setHours(to))
const checkDate = new Date()
return checkDate >= fromDate && checkDate <= toDate
}
есть варианты реализации лучше? а то выглядит как костыльВ
В
M