Last active
May 11, 2018 16:16
-
-
Save enricopolanski/97d4f5e9d944e1fb56d56e910d6e325e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class UserData { | |
constructor(days = {}, firstDay = getFirstDay(), lastAccessDay){ | |
this.days = days; | |
this.firstDay = firstDay; | |
this.lastAccessDay = lastAccessDay; | |
} | |
static getFirstDay() { | |
return new Date(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment