When you're in a promise return, or in a timer, your this changes.
isInTimeSlot() {
return new Promise((resolve, reject) => {
var date = new Date()
var hour = date.getHours()
hour
#console #(hour #resolve(1337) #setınterval(function() #this
https://stackoverflow.com/questions/3...
https://stackoverflow.com/questions/3...