Created
October 11, 2019 10:46
-
-
Save marcelblijleven/965af6ddb8526c66914f4862bd408730 to your computer and use it in GitHub Desktop.
User class
This file contains 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
class User { | |
email:string | |
password:string | |
hasLoyaltyCard: boolean | |
constructor(email:string, password:string, hasLoyaltyCard?:boolean) { | |
this.email = email | |
this.password = password | |
this.hasLoyaltyCard = !!hasLoyaltyCard | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment