Last active
October 30, 2020 06:59
-
-
Save azizkale/ab96e52f02310435b9d96d1fb4cef42f to your computer and use it in GitHub Desktop.
04-Promise&serTimeoutFunction
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
isAuthenticated() { | |
const promise = new Promise((resolve, reject) => { | |
setTimeout(() => { | |
resolve(this.loggedIn); | |
}, 700) | |
}); | |
return promise; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment