SHARE
TWEET

Untitled

a guest Apr 25th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class StoreSingleton {
  2.     constructor() {
  3.         this._data = 'Leffe';
  4.         this._date = new Date()
  5.     }
  6.  
  7.     singletonMethod() {
  8.         return 'singletonMethod';
  9.     }
  10.  
  11.     static staticMethod() {
  12.         return 'staticMethod';
  13.     }
  14.  
  15.     get data() {
  16.         return this._data;
  17.     }
  18.  
  19.     set data(value) {
  20.         this._data = value;
  21.     }
  22.  
  23.     get date() {
  24.         return this._date;
  25.     }
  26. }
  27.  
  28. export default new StoreSingleton();
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