Guest User

Untitled

a guest
Jan 14th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. const axios = require('axios')
  2. // import axios from 'axios'
  3.  
  4. const Api = new Api()
  5.  
  6. Api.start()
  7.  
  8. class Api {
  9. updateInterval
  10.  
  11. start = () => {
  12. this.updateInterval = setInterval(this.getUpdate, 1000)
  13. }
  14.  
  15. getUpdate = () => {
  16. console.log('last 10 projects: ...')
  17. }
  18. }
Add Comment
Please, Sign In to add comment