Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. const testPromise = () => {
  2. getAsyncData() // an async method that returns a promise.
  3. .then(data => {
  4. console.log(data)
  5. return data
  6. });
  7. }
  8.  
  9. testPromise()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement