git ssb

0+

mixmix / marama



Tree: c99cbbf914e6a178a87b75810cb4784f19010329

Files: c99cbbf914e6a178a87b75810cb4784f19010329 / lib / get-day.js

190 bytesRaw
1module.exports = function getDay (date) {
2 const dayIndex = date.getDay()
3 return dayIndex === 0 ? 7 : dayIndex
4
5 // Weeks run 0...6 (Sun - Sat)
6 // this shifts those days around by 1
7}
8

Built with git-ssb-web