daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Jan 14th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top