Commit Graph

2 Commits

Author SHA1 Message Date
7506499f8c Simplify the comparison for a weekend
Since a weekend is either `0` or `6` from `Date#getDay()`, using `X % 6 === 0` will return the right Boolean value and lead to less function calls or comparisons
2019-07-19 15:43:50 -07:00
ebd03958a5 Add isWeekend code snippets 2019-07-19 22:21:10 +08:00