re: Can I Get Some Feedback? (Moment.js in particular) VIEW POST

FULL DISCUSSION
 

Shouldn't the cutoff check use the isBefore function?

if (now > todaysCutoff)
if (now.isBefore(todaysCutoff))
 

The way I had it written it needed isAfter instead, but this is the exact kind of feedback I was looking for. Thank you.

code of conduct - report abuse